London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hello,
We have a custom data type that we index in FIND in multiple languages.
While indexing we populate field LanguageRouting successfully and when landing on search page with a search term entered, it retrieves the correct results related to current user culture.
However, if user visits search page directly without entering any search term, all items in FIND index are retrieved which lead to duplicate items displayed in search page.
Here is how we build the query:
var query = SearchClient.Instance.Search<CustomDataType>(selectedLanguage)
Any idea how to limit results to current user culture if no search terms were entered?
Thanks!