Skip to content

Commit df2cc42

Browse files
committed
Use MatchPhraseQuery for bleve code search
1 parent 99545ae commit df2cc42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/indexer/code/bleve/bleve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (b *Indexer) Search(ctx context.Context, opts *internal.SearchOptions) (int
266266
pathQuery.FieldVal = "Filename"
267267
pathQuery.SetBoost(10)
268268

269-
contentQuery := bleve.NewMatchQuery(opts.Keyword)
269+
contentQuery := bleve.NewMatchPhraseQuery(opts.Keyword)
270270
contentQuery.FieldVal = "Content"
271271

272272
if opts.IsKeywordFuzzy {

0 commit comments

Comments
 (0)