Skip to content

Multilingual search implementation #4709

Answered by Haroenv
sarcadass asked this question in Q&A
Discussion options

You must be logged in to vote

searchable attributes is a setting, not a query parameter, which is why that second doesn't work. Similarly in the first example, you're setting settings, which is done once per index, not per session, and not at the frontend.

If you'd actually want to search differently, the best way to go is to create an index per language, that otherwise follows the same schema, so you can use the same frontend, just different indices.

Otherwise restrictSearchableAttributes should indeed work, but it might not in the example you sent, because of passing searchableAttributes as a parameter instead of a setting.

Hope that already helps, but more detailed help will be best given by contacting support@algo…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Haroenv
Comment options

@sarcadass
Comment options

@Haroenv
Comment options

@sarcadass
Comment options

@sarcadass
Comment options

Answer selected by sarcadass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: InstantSearch.js Issues in instantsearch.js
2 participants