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

Yonik Seeley commented on SOLR-4164:
------------------------------------

bq. In this case group.limit kinda more like rows parameter in /select and we 
don't support for negative rows param now.

group.limit=-1 does work (and has always worked) in non-distrib mode though (by 
design).  IIRC "rows" not supporting -1 was an oversight that I never got 
around to fixing.  A number of people have been surprised that this doesn't 
just work.

If group.limit=-1 is difficult to support in distributed mode for some reason 
(I don't know that part of the code), then I guess we'll have to live with 
different behavior in non-distrib vs distrib for now.

> 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
>            Assignee: Cao Manh Dat
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to