You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Enrico Stahn (JIRA)" <ji...@apache.org> on 2013/04/23 04:51:16 UTC

[jira] [Comment Edited] (SOLR-4164) Result Grouping fails if no hits

    [ https://issues.apache.org/jira/browse/SOLR-4164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13638724#comment-13638724 ] 

Enrico Stahn edited comment on SOLR-4164 at 4/23/13 2:50 AM:
-------------------------------------------------------------

This issue is still not solved with 4.2.1.

Add:
{quote}Known Limitations: The Grouping feature only works if groups are in the same shard.{quote}

We changed {{-DnumShards=2}} to {{-DnumShards=1}} and it's working since.
                
      was (Author: estahn):
    This issue is still not solved with 4.2.1.
                  
> Result Grouping fails if no hits
> --------------------------------
>
>                 Key: SOLR-4164
>                 URL: https://issues.apache.org/jira/browse/SOLR-4164
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other, SolrCloud
>    Affects Versions: 4.0
>            Reporter: Lance Norskog
>
> In SolrCloud, found a result grouping bug in the 4.0 release.
> A distributed result grouping request under SolrCloud got this result:
> {noformat}
> Dec 10, 2012 10:32:07 PM org.apache.solr.common.SolrException log
> SEVERE: null:java.lang.IllegalArgumentException: numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count
>         at org.apache.lucene.search.TopFieldCollector.create(TopFieldCollector.java:1120)
>         at org.apache.lucene.search.TopFieldCollector.create(TopFieldCollector.java:1069)
>         at org.apache.lucene.search.grouping.AbstractSecondPassGroupingCollector.<init>(AbstractSecondPassGroupingCollector.java:75)
>         at org.apache.lucene.search.grouping.term.TermSecondPassGroupingCollector.<init>(TermSecondPassGroupingCollector.java:49)
>         at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand.create(TopGroupsFieldCommand.java:128)
>         at org.apache.solr.search.grouping.CommandHandler.execute(CommandHandler.java:132)
>         at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:339)
>         at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:206)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org