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 Ryan Fox <ry...@mediabeacon.com> on 2014/01/13 20:24:41 UTC
Distributed search with Terms Component and Solr Cloud.
Hello,
I am running Solr 4.6.0. I am experiencing some difficulties using the
terms component across multiple shards. I see according to the
documentation, it should work, but I am unable to do so with solr cloud.
When I have one shard, queries using the terms component respond as I would
expect. However, when I split my index across two shards, I get empty
results for the same query.
I am querying solr with a CloudSolrServer object. When I manually add the
query params "shards" and "shards.qt" to my SolrQuery, I get the expected
response. It's not ideal, but if there's a way to get a list of all shards
programmatically, I could set that parameter.
>From the documentation, it appears to me the terms component should be
supported by solr cloud, but I can't find anything that explicitly says one
way or the other. If there is a better way to do it, or perhaps something
I have misconfigured, any advice would be much appreciated. If it's just
not possible, I will manage. I can provide more configuration or
specifically how I am running the query if that would help.
Ryan Fox
Re: Distributed search with Terms Component and Solr Cloud.
Posted by Uwe Reh <re...@hebis.uni-frankfurt.de>.
Hi Ryan,
just take a look on the thread "TermsComponent/SolrCloud".
Setting your parameters as default in solrconfig.xml should help.
Uwe
Am 13.01.2014 20:24, schrieb Ryan Fox:
> Hello,
>
> I am running Solr 4.6.0. I am experiencing some difficulties using the
> terms component across multiple shards. I see according to the
> documentation, it should work, but I am unable to do so with solr cloud.
>
> When I have one shard, queries using the terms component respond as I would
> expect. However, when I split my index across two shards, I get empty
> results for the same query.
>
> I am querying solr with a CloudSolrServer object. When I manually add the
> query params "shards" and "shards.qt" to my SolrQuery, I get the expected
> response. It's not ideal, but if there's a way to get a list of all shards
> programmatically, I could set that parameter.
>
>>From the documentation, it appears to me the terms component should be
> supported by solr cloud, but I can't find anything that explicitly says one
> way or the other. If there is a better way to do it, or perhaps something
> I have misconfigured, any advice would be much appreciated. If it's just
> not possible, I will manage. I can provide more configuration or
> specifically how I am running the query if that would help.
>
> Ryan Fox
>