I have a site with the language english (en -> default language) and portuguese (pt-BR). Now I have the problem that on the portugese website there are shown items of the english language version. The items are in the solr index. Sitecore version: 9.3
This is the code which starts the search:
string indexName = "list_item_search_index_" + Sitecore.Context.Database.Name;
List<ListSearchResult> result = SearchManager.ContentSearch(searchword, indexName, expr, true);
This is the config for Sitecore.Solr.SearchIndexes.config:
<index id="list_item_search_index_master" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
//other configs
<enableItemLanguageFallback>true</enableItemLanguageFallback>
<enableFieldLanguageFallback>true</enableFieldLanguageFallback>
</index>
I already enabled languagefallback for this index and rebuilt the index. It is still showing the false language version. I tried it with the master database.
SearchManager.ContentSearch
method