From 505216aabeec92f75bb897abb87a7ac46dff6cf7 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 29 Nov 2023 02:23:57 +0100 Subject: [PATCH] Meilisearch: require all query terms to be matched Previously only the first term had to be matched. That default meilisearch behavior makes sense for e.g. some kind of autocomplete to find and select a single result. But for filtering issues it means you can't narrow down results by adding more terms. This is also more consistent with other indexers and GitHub. --- modules/indexer/issues/meilisearch/meilisearch.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/indexer/issues/meilisearch/meilisearch.go b/modules/indexer/issues/meilisearch/meilisearch.go index 335395f2f6714..6fd8193308deb 100644 --- a/modules/indexer/issues/meilisearch/meilisearch.go +++ b/modules/indexer/issues/meilisearch/meilisearch.go @@ -215,6 +215,7 @@ func (b *Indexer) Search(ctx context.Context, options *internal.SearchOptions) ( Limit: int64(limit), Offset: int64(skip), Sort: sortBy, + MatchingStrategy: "all", }) if err != nil { return nil, err