change default highlighter to return 1 fragment
This commit is contained in:
parent
6086f191f6
commit
c9423aa24b
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user