I do, but you raise an interesting point. I had named the field incorrectly. I'm a little puzzled as to why individual search worked with the broken field name, but now all is well!
On Tue, Jul 14, 2009 at 12:03 AM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Tue, Jul 14, 2009 at 2:00 AM, Nick Dimiduk <ndimi...@gmail.com> wrote: > > > However, when I search across all > > deployed shards using the &shards= query parameter ( > > > > > http://host00:8080/solr/select?shards=host00:8080/solr,host01:8080/solr&q=body > > \%3A%3Aterm), > > I get a NullPointerException: > > > > java.lang.NullPointerException > > at > > > org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:421) > > at > > > org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:265) > > at > > > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:264) > > at > > > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1204) > > at > > > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:303) > > at > > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232) > > > > Debugging into the QueryComponent.mergeIds() method reveals the instance > > sreq.responses (line 356) contains one response for each shard specified, > > each with the number of results received by the independant queries. The > > problems begin down at line 370 because the SolrDocument instance has > only > > a > > score field -- which proves problematic in the following line where the > id > > is requested. The SolrDocument, only containing a score, lacks the > > designated ID field (from my schema) and thus the document cannot be > added > > to the results queue. > > > > Because the example on the wiki works by loading the documents directly > > into > > Solr for indexing, I have come to the conclusion that there is some extra > > magic happening in this index generation process which my process lacks. > > > > > Do you have a uniqueKey defined in your schema.xml? > > -- > Regards, > Shalin Shekhar Mangar. >