I am working on a multilingual site in Sitecore and I need to filter search results by current language.
I am using a search scope and I would like to have different versions of a search scope, one for each language.
In the english version of the scope, I added +language:en
to the Scope Query field.
Then I switched to italian version of the scope and changed the Scope Query field to +language:italian_italy
.
It turns out that the english version of the scope was overwritten too, so in the Scope Query of the english version now I have +language:italian_italy! So currently I am not able to have different Scope query field values for different languages' versions of the same search scope item.
Am I missing something? Is there a way to make it work or will I be forced to duplicate the search scope instead of using versions?
I am using Sitecore SXA XM 10.2