나는 Episerver, 나는 사이트의 하위 섹션 내에서 검색 조상 페이지 ID에 결과를 필터링하고있어 찾기 쿼리하는 .NET 클라이언트를 사용하고 있는데이 잘 작동합니다 :면은 Episerver 찾기에서 필터를 존중합니까?
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();
결과 :
,691,363 내가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이므로 Facets가 Filter()
을 존중하지 않는 것으로 보입니다. 이것이 맞습니까? 아니면 잘못된 것입니까?
'TotalMaching'계산에서 버그로 보입니다. 귀하의 '브랜드 n'을 합하면 14가됩니다. –