Merge 05b06d22d00a41e6d03863a4831d011d05fb2ff7 into de7026528b974ac36f8d3add7f51f82497c2d2ea

This commit is contained in:
Jimmy Praet 2025-02-18 17:16:33 -08:00 committed by GitHub
commit 5efc394d05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,7 +266,7 @@ func (b *Indexer) Search(ctx context.Context, opts *internal.SearchOptions) (int
pathQuery.FieldVal = "Filename"
pathQuery.SetBoost(10)
contentQuery := bleve.NewMatchQuery(opts.Keyword)
contentQuery := bleve.NewMatchPhraseQuery(opts.Keyword)
contentQuery.FieldVal = "Content"
if opts.IsKeywordFuzzy {