Skip to content
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

feat(query): adds naturalLanguages parameter #1107

Closed
Ant-hem opened this issue Mar 27, 2020 · 3 comments · Fixed by #1147
Closed

feat(query): adds naturalLanguages parameter #1107

Ant-hem opened this issue Mar 27, 2020 · 3 comments · Fixed by #1147

Comments

@Ant-hem
Copy link
Member

Ant-hem commented Mar 27, 2020

Summary

The naturalLanguages parameter provide users with an easy way to implement voice and natural languages best practices.

The parameter is a list of languages, which applies the following settings:

  • removeStopWords to the naturalLanguages param value
  • ignorePlurals to the naturalLanguages param value
  • removeWordsIfNoResults to allOptional
  • adds analytics tag of naturalLanguages
  • adds query rule context of naturalLanguages

The parameter is list of string. Example: naturalLanguages=["de","fr"]

@Haroenv
Copy link
Contributor

Haroenv commented Mar 27, 2020

is there a list of supported iso strings?

@nunomaduro
Copy link

To make it ready for all languages that may appear in the future I would go for a list of strings here.

@Ant-hem
Copy link
Member Author

Ant-hem commented Mar 27, 2020

The list of supported langauges is the same as the one for removeStopWords: https://www.algolia.com/doc/api-reference/api-parameters/removeStopWords/#usage-notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants