Merge pull request #284 from pmezard/add-indexmapping-fieldanalyzer
mapping_index: add IndexMapping.FieldAnalyzer()
This commit is contained in:
commit
a1ce44fcd4
|
@ -507,3 +507,8 @@ func (im *IndexMapping) AnalyzeText(analyzerName string, text []byte) (analysis.
|
|||
}
|
||||
return analyzer.Analyze(text), nil
|
||||
}
|
||||
|
||||
// FieldAnalyzer returns the name of the analyzer used on a field.
|
||||
func (im *IndexMapping) FieldAnalyzer(field string) string {
|
||||
return im.analyzerNameForPath(field)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user