From 190b888e5d551033d258989dbd7488fd9bbf144c Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sat, 13 May 2023 01:31:13 +0200 Subject: [PATCH] fix: get highlight working --- exp/bleve.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exp/bleve.go b/exp/bleve.go index d6648fe..2d72511 100644 --- a/exp/bleve.go +++ b/exp/bleve.go @@ -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 {