U12 - ManagedQuery only for current culture
# help-with-umbraco
c
Hey all, Just modifying a search service to now handle multilingual. I've got a very basic examine search in which I take a string query and simply perform a ManagedQuery on the entire Content set in the ExternalIndex (Code below).
Copy code
csharp
var resultsAsSearchItems = searcher.CreateQuery(IndexTypes.Content)
                    .ManagedQuery(query);

var executedQuery = resultsAsSearchItems.Execute();
Been trying to look up how I could add in that I would only like it to return results of the current culture however ManagedQuery doesnt seem to accept a culture parameter.
j
Think you'll need to specify the fields you want if you want it to be filtering only to a culture. You can do something like this in your query:
Copy code
csharp
.ManagedQuery(query, new[] { $"FullTextContent_{culture.ToLowerInvariant()}", $"nodeName_{culture.ToLowerInvariant()}" })