私が見つけEpiserverを照会するために、.NETクライアントを使用しています、私はIdがサイトのサブセクション内を検索する祖先ページに結果をフィルタリングだし、これが正常に動作します:ファセットはEpiserver Findのフィルタを尊重しますか?
var result = _searchClient.Search<ProductPageData>()
.For(query)
.Filter(x => x.Ancestors().Match(sectionPageLink.ID.ToString()))
.GetContentResult();
今私が欲しいです以下の数字で
var result = _searchClient.Search<ProductPageData>()
.For(query)
.HistogramFacetFor(x => x.Price, PriceInterval)
.TermsFacetFor(x => x.Brand)
.Filter(x => x.Ancestors().Match(rootPageLink.ID.ToString()))
.GetContentResult();
結果::
私はHistogramFacetFor
と
TermsFacetFor
を使用していますが、ファセット数のカウントが
Filter
操作を尊重するためには表示されませんので、いくつかのファセットナビゲーションを追加します210
result.TotalMatching = 11
Brand:
Brand 1 : 5 items
Brand 2 : 6 items
Brand 3 : 3 items
Total = 14
Price:
0 - 100 : 2
101 - 200 : 5
201 - 300 : 7
Total = 14
フィルターがないとTotalMatching
は14ですので、ファセットはFilter()
を尊重しないようですが、これは間違っているのですか?
これは 'TotalMaching'計算のバグと思われます。あなたの 'Brand n'を合計すると14になります。 –