From 8656f47cd62b084a59546c79d437a120869661e3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 10 Nov 2024 12:27:50 +0100 Subject: fix: search all missing expected results Fixes: https://todo.sr.ht/~alanpearce/searchix/1 --- internal/index/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ) } -- cgit 1.4.1