lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dikchant Sahi <>
Subject Re: multiple indexes?
Date Sat, 01 Dec 2012 05:31:35 GMT
Multiple indexes can be setup using the multi core feature of Solr.

Below are the steps:
1. Add the core name and storage location of the core to
the $SOLR_HOME/solr.xml file.
  <cores adminPath="/admin/cores" defaultCoreName="core-name1"" >
    *<core name="core-name1" instanceDir="core-dir1" />*
*    <core name="core-name2" instanceDir="core-dir2" />*

2. Create the core-directories specified and following sub-directories in
    - conf: Contains the configs and schema definition
    - lib: Contains the required libraries
    - data: Will be created automatically on first run. This would contain
the actual index.

While indexing the docs, you specify the core name in the url as follows:

Similarly you do while querying.

Please refer to Solr Wiki, it has the complete details.

Hope this helps!

- Dikchant

On Sat, Dec 1, 2012 at 10:41 AM, Joe Zhang <> wrote:

> May I ask: how to set up multiple indexes, and specify which index to send
> the docs to at indexing time, and later on, how to specify which index to
> work with?
> A related question: what is the storage location and structure of solr
> indexes?
> Thanks in advance, guys!
> Joe.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message