Problems using UnifiedSearch and TermsFacetFor SeaarchCategory

Vote:
 

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();



#143752
Jan 29, 2016 15:41
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.