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 "kiran.bodigam" <ki...@gmail.com> on 2011/09/15 12:32:02 UTC

can we share the same index directory for multiple cores?

If we implement the  multi core functionality in solr is there any
possibility that the same index information shared by two different cores
(redundancy),can we share the same index directory for multiple cores?If i
query it on admin which core will respond because they suggesting to query
on different core http://localhost:8983/solr/core0/select?q=*:*  i don't
want to do this?
I would like to know how multi core functionality will work?



--
View this message in context: http://lucene.472066.n3.nabble.com/can-we-share-the-same-index-directory-for-multiple-cores-tp3338571p3338571.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: can we share the same index directory for multiple cores?

Posted by Erick Erickson <er...@gmail.com>.
Cores are essentially independent indexes. If you look at your
directory structure you'll see something like
<solr_home>/cores/core0/data/index
<solr_home>/cores/core1/data/index

Sharing the same index across multiple cores doesn't make
sense from a Solr perspective. And the redundancy comment
is kind of odd too. If you need more capacity, consider
replication. Since cores are on the same machine, you don't
improve throughput by having multiple cores since you're still
on the underlying hardware.

If this isn't germane, perhaps you could give us some more
detail about what the use-case you're thinking of is.

Best
Erick

On Thu, Sep 15, 2011 at 6:32 AM, kiran.bodigam <ki...@gmail.com> wrote:
> If we implement the  multi core functionality in solr is there any
> possibility that the same index information shared by two different cores
> (redundancy),can we share the same index directory for multiple cores?If i
> query it on admin which core will respond because they suggesting to query
> on different core http://localhost:8983/solr/core0/select?q=*:*  i don't
> want to do this?
> I would like to know how multi core functionality will work?
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/can-we-share-the-same-index-directory-for-multiple-cores-tp3338571p3338571.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>