We have a problem when using UnifiedSearch together with TermsFacetFor trying to get the categories. In the code below the cats list is empty and the test list is populated. The SearchCategory exists in the index and there are strings in it for one of the hits. How come?
var search = client.UnifiedSearchFor(query.Text)
.UsingSynonyms()
.TermsFacetFor(x => x.SearchCategories)
.TermsFacetFor(x => x.SearchTitle)
.Track()
.ApplyBestBets();
var result = search.GetResult(new HitSpecification {HighlightExcerpt = true});
var cats = result.TermsFacetFor(x => x.SearchCategories).Terms.Select(x => x.Term).ToList();
We have a problem when using UnifiedSearch together with TermsFacetFor trying to get the categories.
In the code below the cats list is empty and the test list is populated. The SearchCategory exists in the index and there are strings in it for one of the hits.
How come?