Skip to content

Commit

Permalink
Meilisearch: require all query terms to be matched
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brechtvl committed Nov 29, 2023
1 parent b348424 commit 505216a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/indexer/issues/meilisearch/meilisearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 505216a

Please sign in to comment.