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 Amit Nithian <an...@gmail.com> on 2010/10/07 19:07:22 UTC

CoreContainer Usage

I am trying to understand the multicore setup of Solr more and saw
that SolrCore.getCore is deprecated in favor of
CoreContainer.getCore(name). How can I get a reference to the
CoreContainer for I assume it's been created somewhere in Solr and is
it possible for one core to get access to another SolrCore via the
CoreContainer?

Thanks
Amit

Re: CoreContainer Usage

Posted by Amit Nithian <an...@gmail.com>.
Hi sorry perhaps my question wasn't very clear. Basically I am trying
to build a federated search where I blend the results of queries to
multiple cores together. This is like distributed search but I believe
the distributed search will issue network calls which I would like to
avoid.

I have read that someone will use a single core as the federated
search handler and then run the searches across multiple cores and
blend the results. This is great but I can't figure out how to easily
get access to an instance of the CoreContainer that I hope has been
initialized (so I am not having it re-parse the configuration files).

Any help would be appreciated.

Thanks!
Amit

On Thu, Oct 7, 2010 at 10:07 AM, Amit Nithian <an...@gmail.com> wrote:
> I am trying to understand the multicore setup of Solr more and saw
> that SolrCore.getCore is deprecated in favor of
> CoreContainer.getCore(name). How can I get a reference to the
> CoreContainer for I assume it's been created somewhere in Solr and is
> it possible for one core to get access to another SolrCore via the
> CoreContainer?
>
> Thanks
> Amit
>