summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/blevesearch/bleve/index/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/blevesearch/bleve/index/index.go')
-rw-r--r--vendor/github.com/blevesearch/bleve/index/index.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/blevesearch/bleve/index/index.go b/vendor/github.com/blevesearch/bleve/index/index.go
index 8a2747b43b..9870b41726 100644
--- a/vendor/github.com/blevesearch/bleve/index/index.go
+++ b/vendor/github.com/blevesearch/bleve/index/index.go
@@ -48,6 +48,8 @@ type Index interface {
Advanced() (store.KVStore, error)
}
+type DocumentFieldTermVisitor func(field string, term []byte)
+
type IndexReader interface {
TermFieldReader(term []byte, field string, includeFreq, includeNorm, includeTermVectors bool) (TermFieldReader, error)
@@ -64,7 +66,7 @@ type IndexReader interface {
FieldDictPrefix(field string, termPrefix []byte) (FieldDict, error)
Document(id string) (*document.Document, error)
- DocumentFieldTerms(id IndexInternalID, fields []string) (FieldTerms, error)
+ DocumentVisitFieldTerms(id IndexInternalID, fields []string, visitor DocumentFieldTermVisitor) error
Fields() ([]string, error)