Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Terms Facet wrong count when Filter is used

$
0
0

Hi!

I am working with Epi Find on an Epi 6 R2 site and I'm having an issue with terms facets.

My problem is that the Count property of TermsFacet objects show the total amount of this facet BEFORE filters.

Example:

var result = SearchClient.Instance.UnifiedSearchFor("foo");
                 .FilterHits(x => x.SearchTitle.MatchCaseInsensitive("testpage"));

                 .TermsFacetFor(x => x.SearchTypeName)

                 .GetResult();

var typeFacets = result.TermsFacetFor(x => x.SearchTypeName);

The typeFacets Count property here wont take into acount the filtering with FilterHits, meaning if I take away that row the counts for the typeFacets objects will still be the same.

So if the total hits for "foo" is 100, but after filtering on "testpage" only has 1 result, a facet for SearchTypeName might still have Count 90.

Any ideas?







Viewing all articles
Browse latest Browse all 8020

Trending Articles