aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/blevesearch/bleve/document/field_text.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/blevesearch/bleve/document/field_text.go')
-rw-r--r--vendor/github.com/blevesearch/bleve/document/field_text.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/blevesearch/bleve/document/field_text.go b/vendor/github.com/blevesearch/bleve/document/field_text.go
index c8e871c9d5..6bd74c7127 100644
--- a/vendor/github.com/blevesearch/bleve/document/field_text.go
+++ b/vendor/github.com/blevesearch/bleve/document/field_text.go
@@ -86,6 +86,10 @@ func (t *TextField) Analyze() (int, analysis.TokenFrequencies) {
return fieldLength, tokenFreqs
}
+func (t *TextField) Analyzer() *analysis.Analyzer {
+ return t.analyzer
+}
+
func (t *TextField) Value() []byte {
return t.value
}