Looking at git blame I see the current parameter was added here: https://issues.apache.org/jira/browse/LUCENE-6648. Previous implementations supported a BitSet rather than a Query. I'm not really sure what the use case is for applying additional filtering when faceting. Perhaps it can support something like drill sideways??
On Thu, Apr 21, 2022 at 6:08 PM Marc D'Mello <marcd2...@gmail.com> wrote: > > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org