The facet result for field productType will show the following count:
BOOK: 1
DVD: 0
So yes, because of post group faceting you'll miss the second facet.
This is basically the same example I described in LUCENE-3097.
I've also described three ways of calculating facet counts in combination
Hi Josh,
For post grouping the documents don't need to reside in the same segment.
Lucene's grouping module has a collector (TermAllGroupHeadsCollector) that
can
collect the most relevant document for each group (GroupHead). This
collector can produce a int[] or a FixedBitSet that can be used
Martin -
Thanks for the reply. I understand your answer about the segments.
However, I'm still cloudy about faceting with respect to the group head.
Perhaps an example will clarify my confusion. Suppose I have 3 order
documents with the following data:
*orderNumber: 1
customerNumber: 1
Hello -
Please let me know if this question is more appropriate of the user
list. I had assumed the developer list was more appropriate since the ticket
is still open. I was analyzing the comments on
LUCENE-3097https://issues.apache.org/jira/browse/LUCENE-3097and had
a couple of questions.