Hi,
We have external data which we need to store in the index and use it in the search.
We are indexing data the following way:
SearchClient.Instance.Index(new TestItem { Id = 1, Heading = "Header 1", });
It would be grate to use something like this in the result:
var result = SearchClient.Instance.Search(Language.Swedish) .For(request.Query) .GetResult();
What is correct way to index data with several languages?
Best regards,
Pavel
The Language input is only used for stemming and analyzers.You should add a language property on your type and use .Filter(...). This is how it works on standard episerver content.
Hi,
We have external data which we need to store in the index and use it in the search.
We are indexing data the following way:
It would be grate to use something like this in the result:
What is correct way to index data with several languages?
Best regards,
Pavel