all repos — searchix @ 8656f47cd62b084a59546c79d437a120869661e3

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: search all missing expected results

Fixes: https://todo.sr.ht/~alanpearce/searchix/1
Alan Pearce alan@alanpearce.eu
Sun, 10 Nov 2024 12:27:50 +0100
commit

8656f47cd62b084a59546c79d437a120869661e3

parent

bb8e236fd5b4dbc083c1cbd18a18c380b9fc8d3b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/index/search.gointernal/index/search.go
@@ -142,11 +142,11 @@ 	// match the user's query in any field ...
 	userQuery := bleve.NewMatchQuery(keyword)
 	userQuery.Analyzer = "option_name"
+	query.AddMust(userQuery)
 
 	if source != nil {
 		query.AddMust(
 			setField(bleve.NewTermQuery(source.Key), "Source"),
-			userQuery,
 		)
 	}