Skip to content

v0.29: Add support to matchingPolicy search request parameter #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brunoocasali opened this issue Oct 11, 2022 · 0 comments · Fixed by #216
Closed

v0.29: Add support to matchingPolicy search request parameter #207

brunoocasali opened this issue Oct 11, 2022 · 0 comments · Fixed by #216
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@brunoocasali
Copy link
Member

This improvement motivation is about letting the user customize the behavior of Meilisearch when retrieving documents according to the query words.

  • Add a matchingStrategy parameter to search requests search and searchRaw.
  • The value last is the default strategy if the field is not specified.
  • This field can receive only two valid options last or all.

Expected result:

await client.index('movies').search('shifu', matchingStrategy: 'last');

Good to have: Make the last or all constants where we could quickly use them without mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant