2

I have 2 languages in my site and a search view for property search and I am using the Search API module.

When I try to search in English (default language), the search is working. But when I try to search in the another language the search is not working.

I am searching by tittle.

Any suggestions?

2

If you are using entity translation for translating the content, you will have to install the Search API Entity Translation module.

Search API Entity Translation module provides multilingual support for the Search API module through integration with Entity Translation.

This module provides a new index type : "multilingual node index", similar to the "default node index" which is provided by default by Search API.
You can use this to create the views and they will honor the language selected from the language switcher.

  • thanks a lot for your help @Ajits . but i want to ask you some thing ,after creating the "multilingual node index" i changed the language to the second language (arabic) and i searched then the result that i got its the same that i want but its in the English not in Arabic its back to the default language ! So ... what should i edit in the search view to make the result shown in Current user's language ? – Waseeem Alfarra Aug 10 '16 at 13:29
  • @WaseeemAlfarra Are you sure you are creating a new view with the "default multilingual node index" and not "multilingual node index"? – AjitS Aug 16 '16 at 11:46
  • mmmmm...@Ajits . i created a view with "multilingual node index" not the "default multilingual node index" !! – Waseeem Alfarra Aug 16 '16 at 11:52
  • @WaseeemAlfarra I'm sorry! Cancel my previous comment. It should have been - Are you sure you are creating a new view with the "default multilingual node index" and not "default node index"? – AjitS Aug 16 '16 at 12:04
  • don't worry my friend . am now creating a view with "default multilingual node index" ... – Waseeem Alfarra Aug 16 '16 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.