0
0

change default highlighter to return 1 fragment

This commit is contained in:
Marty Schoch 2014-08-28 14:45:51 -04:00
parent 6086f191f6
commit c9423aa24b

View File

@ -365,7 +365,7 @@ func (i *indexImpl) Search(req *SearchRequest) (*SearchResult, error) {
}
for _, hf := range highlightFields {
highlighter.BestFragmentsInField(hit, doc, hf, 3)
highlighter.BestFragmentsInField(hit, doc, hf, 1)
}
}
}