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.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/blevesearch/bleve/index/index.go b/vendor/github.com/blevesearch/bleve/index/index.go
index 6aa444cfd8..3e866f3aab 100644
--- a/vendor/github.com/blevesearch/bleve/index/index.go
+++ b/vendor/github.com/blevesearch/bleve/index/index.go
@@ -121,6 +121,10 @@ type IndexReaderOnly interface {
FieldDictOnly(field string, onlyTerms [][]byte, includeCount bool) (FieldDict, error)
}
+type IndexReaderContains interface {
+ FieldDictContains(field string) (FieldDictContains, error)
+}
+
// FieldTerms contains the terms used by a document, keyed by field
type FieldTerms map[string][]string
@@ -230,6 +234,10 @@ type FieldDict interface {
Close() error
}
+type FieldDictContains interface {
+ Contains(key []byte) (bool, error)
+}
+
// DocIDReader is the interface exposing enumeration of documents identifiers.
// Close the reader to release associated resources.
type DocIDReader interface {