On 09.02.2009 17:01 Ryan McKinley wrote:

> Check your solrconfig.xml  you probably have somethign like this:
> 
>    <!-- Used to specify an alternate directory to hold all index data
>         other than the default ./data under the Solr home.
>         If replication is in use, this should match the replication  
> configuration. -->
>    <dataDir>${solr.data.dir:./solr/data}</dataDir>
> (from the example)
> 
> either remove that or make each one point to the correct location

Thanks, that's it!

Now all that is left is a more cosmetic change I would like to make:
I tried to place the solr.xml in the example dir to get rid of the
"-Dsolr.solr.home=multicore" for the start and changed the first entry
from "core0" to "solr" and moved the core1 dir from multicore directly
under the example dir
Idea behind all this: Use the original single core under "solr" as core0
and add a second one on the same directory level ("core1" parallel to
"solr"). Then I started solr with the old "java -jar start.jar" in the
"example" dir. But the multicore config seems to be ignored then, I get
my old single core e.g. http://localhost:8983/solr/core1/select?q=*:* is
no longer found.
As I said everything works if I leave it in the multicore subdir and
start with "-Dsolr.solr.home=multicore" but it would be nice if I could
do without that extra subdir and the extra start parameter.

--Michael

Reply via email to