You can create and destroy cores over the HTTP interface:

    http://www.lucidimagination.com/search/document/CDRG_ch08_8.2.5

But you are right, the Embedded Solr API does not support Distributed
Search across multiple cores. See:

org.apache.solr.handler.component.SearchHandler.submit()  which very
definitly only does HTTP requests.

https://issues.apache.org/jira/browse/SOLR-1858 requests this feature.

On Wed, Mar 31, 2010 at 3:51 AM, Claudio Atzori
<claudio.atz...@isti.cnr.it> wrote:
> In my application I need to create and destroy indexes via java code, so to
> bypass the http requests I'm using the EmbeddedSolrServer, and I am creating
> different SolrCore(s) one per every index I need.
> Now the point is that a requirement of my application is the capability to
> perfom a query on a specific index, on a subset of indexes, or on every
> index.
>
> I have been looking to the "shred" parameter:
>
> <http://localhost:8080/solr/core1/select?shards=localhost:8080/solr/core1,localhost:8080/solr/core2&q=some>http://localhost:8080/solr/core1/select?shards=localhost:8080/solr/core1,localhost:8080/solr/core2&q=some
> query...
>
> ...and ok, but my solr core instances doesn't expose an http interface, so
> how can I shred a query between all my solr cores?
>
> Thanks in advance,
> Claudio
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to