I am using Find.13.2.8 and trying to sort my searchresult of products (derives directly from ProductContent), and I am only interested in getting my Swedish translations, but for some reason my result comes unsorted, and english is included in my search result. What am I missing?
var productSearch = _client.Search<MyProductContent>(Language.Swedish);
productSearch = productSearch.OrderBy(x => x.DisplayName);
var result= productSearch.GetContentResult();
Hi,
I am using Find.13.2.8 and trying to sort my searchresult of products (derives directly from ProductContent), and I am only interested in getting my Swedish translations, but for some reason my result comes unsorted, and english is included in my search result. What am I missing?
Projected output:
[0]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = en, ContentLink = 5__CatalogContent }}
[1]: {{ DisplayName = TRAPPKANTSLIST SA36 SVART, Language = sv, ContentLink = 7__CatalogContent }}
[2]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = sv, ContentLink = 5__CatalogContent }}
[3]: {{ DisplayName = TRAPPKANTSLIST SA36 SVART, Language = en, ContentLink = 7__CatalogContent }}
[4]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = sv, ContentLink = 5__CatalogContent }}
[5]: {{ DisplayName = HÅRDVAXOLJA 3062 OSMO, Language = en, ContentLink = 5__CatalogContent }}