Skip to content

Commit 505216a

Browse files
committed
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.
1 parent b348424 commit 505216a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/indexer/issues/meilisearch/meilisearch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ func (b *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (
215215
Limit: int64(limit),
216216
Offset: int64(skip),
217217
Sort: sortBy,
218+
MatchingStrategy: "all",
218219
})
219220
if err != nil {
220221
return nil, err

0 commit comments

Comments
 (0)