[
https://issues.apache.org/jira/browse/SOLR-565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
patrick o'leary updated SOLR-565:
---------------------------------
Attachment: distributor_component.patch
Attaching patch for a DistributorComponent
Provides the ability to load shard urls from a topologyFile, and add parameters
to the outgoing url
Requires configuration in solr/conf/solrconfig.xml
Get's activated by adding distributed=true to search query.
Still accepts shards= parameter as an override.
Configuration:
{code}
<searchComponent name="distributor"
class="org.apache.solr.handler.component.DistributorComponent" >
<str name="topologyFile">shards.txt</str>
<arr name="addParams">
<str>shards.qt=geo</str>
</arr>
</searchComponent>
<requestHandler name="/search"
class="org.apache.solr.handler.component.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
</lst>
<arr name="components">
<str>distributor</str>
<str>query</str>
<str>facet</str>
<str>mlt</str>
<str>highlight</str>
<str>debug</str>
</arr>
</requestHandler>
{code}
shards.txt file by default will exist in solr/conf directory and is line
delimited containing
host_1:port/solr_path
host_2:port/solr_path
etc..
> Component to abstract shards from clients
> -----------------------------------------
>
> Key: SOLR-565
> URL: https://issues.apache.org/jira/browse/SOLR-565
> Project: Solr
> Issue Type: New Feature
> Components: search
> Affects Versions: 1.3
> Reporter: patrick o'leary
> Priority: Minor
> Fix For: 1.3
>
> Attachments: distributor_component.patch
>
>
> A component that will remove the need for calling clients to provide the
> shards parameter for
> a distributed search.
> As systems grow, it's better to manage shards with in solr, rather than
> managing each client.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.