Re: Question about LUCENE-3097 - Post Group Faceting

2011-08-06 Thread Martijn v Groningen
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

Re: Question about LUCENE-3097 - Post Group Faceting

2011-08-05 Thread Martijn v Groningen
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

Re: Question about LUCENE-3097 - Post Group Faceting

2011-08-05 Thread Joshua Harness
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

Question about LUCENE-3097 - Post Group Faceting

2011-08-04 Thread Joshua Harness
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.