lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-5046) IllegalArgumentException using distributed group.query when one shard does not match any docs
Date Thu, 18 Jul 2013 23:56:48 GMT

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

Yonik Seeley commented on SOLR-5046:
------------------------------------

Actually, it doesn't look like group.query works at all to me... the most basic things I try
fail.
{code}
http://localhost:8983/solr/select?q=*:*&shards=localhost:8983/solr&group=true&group.query=*:*
{code}
{code}
242473 [qtp462961596-15] ERROR org.apache.solr.core.SolrCore  – java.lang.IllegalArgumentException:
shard 0 did not set sort field values (FieldDoc.fields is null); you must pass fillFields=true
to IndexSearcher.search on each shard
	at org.apache.lucene.search.TopDocs$MergeSortQueue.<init>(TopDocs.java:143)
	at org.apache.lucene.search.TopDocs.merge(TopDocs.java:214)
	at org.apache.solr.search.grouping.distributed.responseprocessor.TopGroupsShardResponseProcessor.process(TopGroupsShardResponseProcessor.java:167)
	at org.apache.solr.handler.component.QueryComponent.handleGroupedResponses(QueryComponent.java:643)
	at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:626)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:311)
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1904)
{code}
                
> IllegalArgumentException using distributed group.query when one shard does not match
any docs
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-5046
>                 URL: https://issues.apache.org/jira/browse/SOLR-5046
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.3
>            Reporter: Hoss Man
>
> [Evgeny Salnikov noted this problem on the mailing list|http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201307.mbox/%3CCADz7Cx6PbMxExhb8gsCu9%3DP6nphJd2fYayov_%3D%3D%2Bo1sEXswWLw%40mail.gmail.com%3E],
although the initial report was somewhat convoluted by suspicious description of adding shards
after the fact.
> Steps to reproduce using 4.3.1 example...
> * startup a 2 node SolrCloud cluster following the "Example A" description on the SolrCloud
wiki...
> ** cp example example2
> ** cd example && java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf
-DzkRun -DnumShards=2 -jar start.jar
> ** cd example2 && java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar
> * index exactly one doc (to ensure that subsequent distributed queries get results from
only one node)
> ** java -jar post.jar utf8-example.xml
> * execute a request using group.query
> ** http://localhost:7574/solr/select?q=*:*&group=true&group.query=cat:software
> stack trace...
> {noformat}
> 166500 [qtp2092063645-19] ERROR org.apache.solr.servlet.SolrDispatchFilter  – null:java.lang.IllegalArgumentException:
shard 1 did not set sort field values (FieldDoc.fields is null); you must pass fillFields=true
to IndexSearcher.search on each shard
> 	at org.apache.lucene.search.TopDocs$MergeSortQueue.<init>(TopDocs.java:143)
> 	at org.apache.lucene.search.TopDocs.merge(TopDocs.java:214)
> 	at org.apache.solr.search.grouping.distributed.responseprocessor.TopGroupsShardResponseProcessor.process(TopGroupsShardResponseProcessor.java:114)
> 	at org.apache.solr.handler.component.QueryComponent.handleGroupedResponses(QueryComponent.java:619)
> 	at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:602)
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:311)
> 	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> 	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1816)
> {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


Mime
View raw message