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 Bruno Dusausoy <bd...@yp5.be> on 2013/01/15 09:52:15 UTC

Multicore configuration

Hi,

I'd like to use two separate indexes (Solr 3.6.1).
I've read several wiki pages and looked at the multicore example bundled 
with the distribution but it seems I missing something.


I have this hierarchy :
solr-home/
|
-- conf
   |
    -- solr.xml
    -- solrconfig.xml (if I don't put it, solr complains)
    -- schema.xml (idem)
    -- ...
|
-- cores
   |
   -- dossier
     |
      -- conf
        |
         -- dataconfig.xml
         -- schema.xml
         -- solrconfig.xml
     |
      -- data
   |
   -- procedure
     |
      -- conf
        |
         -- dataconfig.xml
         -- schema.xml
         -- solrconfig.xml
     |
      -- data

Here's the content of my solr.xml file :
http://paste.debian.net/224818/

And I launch my servlet container with 
-Dsolr.solr.home=my-directory/solr-home.

I've put nearly nothing in my solr-home/conf/schema.xml so Solr 
complains, but that's not the point.

When I go to the admin of core "dossier",
http://localhost:8080/solr/dossier/admin, the container says it doesn't 
exist.
But when I go to http://localhost:8080/solr/admin it finds it, which 
makes me guess that Solr is stil in "single core" mode.

What am I missing ?

Regards.
-- 
Bruno Dusausoy
Software Engineer
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.

Re: Multicore configuration

Posted by Bruno Dusausoy <bd...@yp5.be>.
Dariusz Borowski a écrit :
> Hi Bruno,
>
> Maybe this helps. I wrote something about it:
> http://www.coderthing.com/solr-with-multicore-and-database-hook-part-1/
>
Hi Darius,

Thanks for the link.
I've found my - terrible - mistake : solr.xml was not in solr.home dir 
but in solr.home/conf dir, so it didn't take it :-/
It works perfectly now.

Sorry for the noise.

Regards.
-- 
Bruno Dusausoy
Software Engineer
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.

Re: Multicore configuration

Posted by Dariusz Borowski <da...@gmail.com>.
Hi Bruno,

Maybe this helps. I wrote something about it:
http://www.coderthing.com/solr-with-multicore-and-database-hook-part-1/

Dariusz



On Tue, Jan 15, 2013 at 9:52 AM, Bruno Dusausoy <bd...@yp5.be> wrote:

> Hi,
>
> I'd like to use two separate indexes (Solr 3.6.1).
> I've read several wiki pages and looked at the multicore example bundled
> with the distribution but it seems I missing something.
>
>
> I have this hierarchy :
> solr-home/
> |
> -- conf
>   |
>    -- solr.xml
>    -- solrconfig.xml (if I don't put it, solr complains)
>    -- schema.xml (idem)
>    -- ...
> |
> -- cores
>   |
>   -- dossier
>     |
>      -- conf
>        |
>         -- dataconfig.xml
>         -- schema.xml
>         -- solrconfig.xml
>     |
>      -- data
>   |
>   -- procedure
>     |
>      -- conf
>        |
>         -- dataconfig.xml
>         -- schema.xml
>         -- solrconfig.xml
>     |
>      -- data
>
> Here's the content of my solr.xml file :
> http://paste.debian.net/**224818/ <http://paste.debian.net/224818/>
>
> And I launch my servlet container with -Dsolr.solr.home=my-directory/**
> solr-home.
>
> I've put nearly nothing in my solr-home/conf/schema.xml so Solr complains,
> but that's not the point.
>
> When I go to the admin of core "dossier",
> http://localhost:8080/solr/**dossier/admin<http://localhost:8080/solr/dossier/admin>,
> the container says it doesn't exist.
> But when I go to http://localhost:8080/solr/**admin<http://localhost:8080/solr/admin>it finds it, which makes me guess that Solr is stil in "single core" mode.
>
> What am I missing ?
>
> Regards.
> --
> Bruno Dusausoy
> Software Engineer
> YP5 Software
> --
> Pensez environnement : limitez l'impression de ce mail.
> Please don't print this e-mail unless you really need to.
>

Re: Multicore configuration

Posted by Upayavira <uv...@odoko.co.uk>.
You should put your solr.xml into your 'cores' directory, and set
-Dsolr.solr.home=cores

That should get you going. 'cores' *is* your Solr Home. Otherwise, your
instanceDir entries in your current solr.xml will need correct paths to
../cores/procedure/ etc.

Upayavira

On Tue, Jan 15, 2013, at 08:52 AM, Bruno Dusausoy wrote:
> Hi,
> 
> I'd like to use two separate indexes (Solr 3.6.1).
> I've read several wiki pages and looked at the multicore example bundled 
> with the distribution but it seems I missing something.
> 
> 
> I have this hierarchy :
> solr-home/
> |
> -- conf
>    |
>     -- solr.xml
>     -- solrconfig.xml (if I don't put it, solr complains)
>     -- schema.xml (idem)
>     -- ...
> |
> -- cores
>    |
>    -- dossier
>      |
>       -- conf
>         |
>          -- dataconfig.xml
>          -- schema.xml
>          -- solrconfig.xml
>      |
>       -- data
>    |
>    -- procedure
>      |
>       -- conf
>         |
>          -- dataconfig.xml
>          -- schema.xml
>          -- solrconfig.xml
>      |
>       -- data
> 
> Here's the content of my solr.xml file :
> http://paste.debian.net/224818/
> 
> And I launch my servlet container with 
> -Dsolr.solr.home=my-directory/solr-home.
> 
> I've put nearly nothing in my solr-home/conf/schema.xml so Solr 
> complains, but that's not the point.
> 
> When I go to the admin of core "dossier",
> http://localhost:8080/solr/dossier/admin, the container says it doesn't 
> exist.
> But when I go to http://localhost:8080/solr/admin it finds it, which 
> makes me guess that Solr is stil in "single core" mode.
> 
> What am I missing ?
> 
> Regards.
> -- 
> Bruno Dusausoy
> Software Engineer
> YP5 Software
> --
> Pensez environnement : limitez l'impression de ce mail.
> Please don't print this e-mail unless you really need to.