Hi,
I had a quick question about RangeFacetsCounts
<https://github.com/apache/lucene/blob/a071180a806d1bb7ae11ae30a07e43e452bea810/lucene/facet/src/java/org/apache/lucene/facet/range/RangeFacetCounts.java#L65>,
I'm a bit confused by the fastMatchQuery param. Specifically, I was
wondering why we need this when we can provide hits from a FacetCollector
directly without having to run a query? I realize that the fastMatchQuery
is used for filtering provided hits further, but it seems redundant when we
can do all the matching we need before providing the FacetCollector object
to RangeFacetCounts. SortedSetDocValuesFacetCounts only has FacetCollector
as a param for example
<https://github.com/apache/lucene/blob/a071180a806d1bb7ae11ae30a07e43e452bea810/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java#L89>
without
having the fastMatchQuery param. Maybe I'm misunderstanding something here?
If anyone has an explanation that would be super helpful!
Thanks!
Marc D'Mello
I had a quick question about RangeFacetsCounts
<https://github.com/apache/lucene/blob/a071180a806d1bb7ae11ae30a07e43e452bea810/lucene/facet/src/java/org/apache/lucene/facet/range/RangeFacetCounts.java#L65>,
I'm a bit confused by the fastMatchQuery param. Specifically, I was
wondering why we need this when we can provide hits from a FacetCollector
directly without having to run a query? I realize that the fastMatchQuery
is used for filtering provided hits further, but it seems redundant when we
can do all the matching we need before providing the FacetCollector object
to RangeFacetCounts. SortedSetDocValuesFacetCounts only has FacetCollector
as a param for example
<https://github.com/apache/lucene/blob/a071180a806d1bb7ae11ae30a07e43e452bea810/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java#L89>
without
having the fastMatchQuery param. Maybe I'm misunderstanding something here?
If anyone has an explanation that would be super helpful!
Thanks!
Marc D'Mello