forked from varia/go-sh-manymanuals
fix: get highlight working
This commit is contained in:
parent
299ff79397
commit
190b888e5d
@ -95,6 +95,7 @@ func main() {
|
||||
search := bleve.NewSearchRequest(query)
|
||||
search.Highlight = bleve.NewHighlightWithStyle(ansi.Name)
|
||||
search.Size = 5
|
||||
search.Fields = []string{"*"}
|
||||
|
||||
searchResults, err := index.Search(search)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user