about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--internal/index/search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/index/search.go b/internal/index/search.go
index cdffc1e..c9f1dbd 100644
--- a/internal/index/search.go
+++ b/internal/index/search.go
@@ -142,11 +142,11 @@ func (index *ReadIndex) Search(
 	// 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,
 		)
 	}