lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baur <daniel.b...@uni-ulm.de>
Subject Distributed Search (shards) not working with /terms request handler
Date Fri, 09 Nov 2012 15:00:10 GMT
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





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message