Examine: How to search content for different languages?
Hi all,
I need to search my content and filter the results for different languages. I'm using Umbraco CMS 11.4.2 with Examine and I have two languages: Swedish and English.
Here's the code. Is there a way to send in the desired culture into the query? I couldn't find anything in the docs.
_examineManager.TryGetIndex(
Umbraco.Cms.Core.Constants.UmbracoIndexes.ExternalIndexName, out var index);
var searchResult = index
.Searcher
.CreateQuery(IndexTypes.Content)
.ManagedQuery(query)
.Execute(QueryOptions.SkipTake((pageNumber - 1) * pageSize, pageSize));
Examine: How to search content for different languages?
Hi all,
I need to search my content and filter the results for different languages. I'm using Umbraco CMS 11.4.2 with Examine and I have two languages: Swedish and English.
Here's the code. Is there a way to send in the desired culture into the query? I couldn't find anything in the docs.
Thanks in advance!
is working on a reply...