I checked the physical index (using version 3.5 of the Luke tool) and confirmed there were documents indexed with the target language (and these were not opted out of search results).
Luke tool shows the target language indexed. |
.Where(x => x.Language == Sitecore.Context.Language.Name)Which was not working for some reason, so I tried changing the code to then get results based on culture:
searchItems = context.GetQueryable<SearchResultItem>(new CultureExecutionContext(culture))After this change the search was returning items in all languages as expected.
No comments:
Post a Comment