Skip to content

Commit

Permalink
Meilisearch: require all query terms to be matched (#28293) (#28296)
Browse files Browse the repository at this point in the history
Co-authored-by: Brecht Van Lommel <brecht@blender.org>
  • Loading branch information
GiteaBot and brechtvl authored Nov 29, 2023
1 parent 24e03a1 commit d2908b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/indexer/issues/meilisearch/meilisearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,11 @@ func (b *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (
skip, limit := indexer_internal.ParsePaginator(options.Paginator, maxTotalHits)

searchRes, err := b.inner.Client.Index(b.inner.VersionedIndexName()).Search(options.Keyword, &meilisearch.SearchRequest{
Filter: query.Statement(),
Limit: int64(limit),
Offset: int64(skip),
Sort: sortBy,
Filter: query.Statement(),
Limit: int64(limit),
Offset: int64(skip),
Sort: sortBy,
MatchingStrategy: "all",
})
if err != nil {
return nil, err
Expand Down

0 comments on commit d2908b2

Please sign in to comment.