Meilisearch: require all query terms to be matched (#28293) (#28296)

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
pull/28275/head^2
Giteabot 12 months ago committed by GitHub
parent 24e03a125d
commit d2908b2794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      modules/indexer/issues/meilisearch/meilisearch.go

@ -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

Loading…
Cancel
Save