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" />*
  </cores>

2. Create the core-directories specified and following sub-directories in
it:
    - 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:
  http://<host>:<port>/solr/<core-name>/update?<parameters>

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 <smartag...@gmail.com> 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.
>

Reply via email to