You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Daniel Baur <da...@uni-ulm.de> on 2012/11/09 16:00:10 UTC

Distributed Search (shards) not working with /terms request handler

Hi all,

I am using the the /terms request handler defined in the default 
configuration with solr 3.6.1:

<requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
      <lst name="defaults">
       <bool name="terms">true</bool>
     </lst>
     <arr name="components">
       <str>terms</str>
     </arr>
</requestHandler>

When issuing a normal request to this request handler it is working as 
expected.

However, when I'm trying to issue a distributed search request to this 
request handler, I'm getting a 400 Bad Request error message.

The request I'm trying to use: 
http://server:port/solr/core1/terms?terms=true&terms.fl=term&terms.lower=tes&terms.prefix=tes&terms.lower.incl=false&terms.lower.indent=true&shards=server:port/solr/core1,server:port/solr/core2&shards.qt=/terms 
<http://couch.rz.uni-ulm.de:8080/solr/core_de/terms?terms=true&terms.fl=term&terms.lower=tes&terms.prefix=tes&terms.lower.incl=false&terms.lower.indent=true&shards=couch.rz.uni-ulm.de:8080/solr/core_de,couch.rz.uni-ulm.de:8080/solr/core_en&shards.qt=/terms>

When having a detailed look at the logging information I can see a 
requests being dispatched to both cores:

"terms=true&shards.qt=%2Fterms&terms.lower.indent=true&terms.prefix=tes&terms.lower.incl=false&terms.lower=tes&terms.fl=term&terms.limit=-1&terms.sort=index&isShard=true&NOW=1352472380721&qt=%2Fterms&wt=javabin&version=2"

However, both cores return an error:

HTTP Status 400 - isShard is only acceptable with search handlers

"Normal" queries using the /select search handler and sharding work 
perfectly fine.

Any ideas what I'm doing wrong?

Thanks for your help!

Daniel