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 Andy <an...@yahoo.com> on 2010/09/29 16:41:19 UTC
How to set up multiple indexes?
I installed Solr according to the tutorial. My schema.xml & solrconfig.xml is in
~/apache-solr-1.4.1/example/solr/conf
Everything so far is just like that in the tutorial. But I want to set up a 2nd index (separate from the "main" index) just for the purpose of auto-complete.
I understand that I need to set up multicore for this. But I'm not sure how to do that. I read the doc (http://wiki.apache.org/solr/CoreAdmin) but am still pretty confused.
- where do I put the 2nd index?
- do I need separate schema.xml & solrconfig.xml for the 2nd index? Where do I put them?
- how do I tell solr which index do I want a document to go to?
- how do I tell solr which index do I want to query against?
- any step-by-step instruction on setting up multicore?
Thanks.
Andy
Re: How to set up multiple indexes?
Posted by Christopher Gross <co...@gmail.com>.
Hi Andy!
I configured this a few days ago, and found a good resource --
http://wiki.apache.org/solr/MultipleIndexes
That page has links that will give you the instructions for setting up
Tomcat, Jetty and Resin. I used the Tomcat ones the other day, and it gave
me everything that I needed to get it up and running. You basically just
need to create a new directory to contain the second instance, then create a
context file for it in the TOMCAT_HOME/conf/Catalina/localhost directory.
Good luck!
-- Chris
On Wed, Sep 29, 2010 at 10:41 AM, Andy <an...@yahoo.com> wrote:
> I installed Solr according to the tutorial. My schema.xml & solrconfig.xml
> is in
> ~/apache-solr-1.4.1/example/solr/conf
>
> Everything so far is just like that in the tutorial. But I want to set up a
> 2nd index (separate from the "main" index) just for the purpose of
> auto-complete.
>
> I understand that I need to set up multicore for this. But I'm not sure how
> to do that. I read the doc (http://wiki.apache.org/solr/CoreAdmin) but am
> still pretty confused.
>
> - where do I put the 2nd index?
> - do I need separate schema.xml & solrconfig.xml for the 2nd index? Where
> do I put them?
> - how do I tell solr which index do I want a document to go to?
> - how do I tell solr which index do I want to query against?
> - any step-by-step instruction on setting up multicore?
>
> Thanks.
> Andy
>
>
>
>
>
Re: How to set up multiple indexes?
Posted by Luke Crouch <lc...@geek.net>.
Check
http://doc.ez.no/Extensions/eZ-Find/2.2/Advanced-Configuration/Using-multi-core-features
It's for eZ-Find, but it's the basic setup for multiple cores in any
environment.
We have cores designed like so:
solr/sfx/
solr/forum/
solr/mail/
solr/news/
solr/tracker/
each of those core directories has its own conf/ with schema.xml and
solrconfig.xml. then solr/solr.xml looks like:
<cores adminPath="/admin/cores">
<core name="sfx" instanceDir="sfx" />
<core name="tracker" instanceDir="tracker" />
etc.
After that you add the core name into the url for all requests to the core:
http://..../solr/sfx/select?...
http://..../solr/sfx/update...
http://..../solr/tracker/select?...
http://..../solr/tracker/update...
On Wed, Sep 29, 2010 at 9:41 AM, Andy <an...@yahoo.com> wrote:
> I installed Solr according to the tutorial. My schema.xml & solrconfig.xml
> is in
> ~/apache-solr-1.4.1/example/solr/conf
>
> Everything so far is just like that in the tutorial. But I want to set up a
> 2nd index (separate from the "main" index) just for the purpose of
> auto-complete.
>
> I understand that I need to set up multicore for this. But I'm not sure how
> to do that. I read the doc (http://wiki.apache.org/solr/CoreAdmin) but am
> still pretty confused.
>
> - where do I put the 2nd index?
> - do I need separate schema.xml & solrconfig.xml for the 2nd index? Where
> do I put them?
> - how do I tell solr which index do I want a document to go to?
> - how do I tell solr which index do I want to query against?
> - any step-by-step instruction on setting up multicore?
>
> Thanks.
> Andy
>
>
>
>
>