0
0
Fork 0

fix comment in wrong format

This commit is contained in:
Marty Schoch 2016-10-02 11:10:05 -04:00
parent f3dc89699d
commit f05dc237ab
1 changed files with 4 additions and 5 deletions

View File

@ -338,11 +338,10 @@ func (im *IndexMappingImpl) newWalkContext(doc *document.Document, dm *DocumentM
}
}
// attempts to find the best analyzer to use with only a field name
// will walk all the document types, look for field mappings at the
// provided path, if one exists and it has an explicit analyzer
// that is returned
// nil should be an acceptable return value meaning we don't know
// AnalyzerNameForPath attempts to find the best analyzer to use with only a
// field name will walk all the document types, look for field mappings at the
// provided path, if one exists and it has an explicit analyzer that is
// returned.
func (im *IndexMappingImpl) AnalyzerNameForPath(path string) string {
// first we look for explicit mapping on the field
for _, docMapping := range im.TypeMapping {