[ https://issues.apache.org/jira/browse/SOLR-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martijn van Groningen updated SOLR-2955: ---------------------------------------- Attachment: SOLR-2955.patch Thanks for reporting this issue Steffen! I've attached a fix (4.0) for this issue. I also changes your test case a bit. Basically I'm not asserting the response, because this isn't possible when sorting by score in a sharded environment. It just runs the query and checks if the query runs without errors. > Distributed grouping throws IllegalStateException when querying with > group.sort=score desc > ------------------------------------------------------------------------------------------ > > Key: SOLR-2955 > URL: https://issues.apache.org/jira/browse/SOLR-2955 > Project: Solr > Issue Type: Bug > Components: search > Affects Versions: 3.6, 4.0 > Environment: Mac OS X 10.7.2 > Java version "1.6.0_29" > Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527) > Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode) > Reporter: Steffen Elberg Godskesen > Assignee: Martijn van Groningen > Labels: collapse, exception, grouping > Attachments: SOLR-2955.patch, SOLR-2955.patch > > > To reproduce: > * Start example configuration from 3.6 or 4.0 distribution, and add example > .xml documents to index > * Query: > http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr > This will log > {noformat} > Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log > SEVERE: java.lang.IllegalStateException: All required fields must be set > at > org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94) > at > org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194) > . > . > {noformat} > For other (legal) values of group.sort or without the shards parameter, the > query succeeds. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org