OK I opened https://issues.apache.org/jira/browse/LUCENE-4581 for this
... I'll commit a fix shortly.

Thanks for reporting this!

Mike McCandless

http://blog.mikemccandless.com

On Wed, Nov 28, 2012 at 9:28 AM, Michael McCandless
<luc...@mikemccandless.com> wrote:
> That sure looks like a bug!  Could you open a Jira issue (
> https://issues.apache.org/jira/browse/LUCENE ) and post a patch / test
> case?  Thanks!
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
> On Wed, Nov 28, 2012 at 7:53 AM, d...@neusoft.com <d...@neusoft.com> wrote:
>> Is this a bug?
>>
>> when using group function, I set "groupingSearch.setAllGroups(true);", but 
>> it return groupCount = 0
>>
>> I saw the source , I found that :
>>
>> if (allGroupHeads) {
>>                                 collectors.add(allGroupsCollector);
>> }
>> if (allGroupHeads) {
>>                                 collectors.add(allGroupHeadsCollector);
>> }
>>
>> It seemed that it should use allGroup flag, not allGroupHeads.
>>
>> I am a newbie to Lucene, so I want to ask whether it is right?
>> ---------------------------------------------------------------------------------------------------
>> Confidentiality Notice: The information contained in this e-mail and any 
>> accompanying attachment(s)
>> is intended only for the use of the intended recipient and may be 
>> confidential and/or privileged of
>> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader 
>> of this communication is
>> not the intended recipient, unauthorized use, forwarding, printing,  
>> storing, disclosure or copying
>> is strictly prohibited, and may be unlawful.If you have received this 
>> communication in error,please
>> immediately notify the sender by return e-mail, and delete the original 
>> message and all copies from
>> your system. Thank you.
>> ---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to