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 James liu <li...@gmail.com> on 2007/04/25 06:40:12 UTC

just advice

i use solr multi instance, now i m testing solr and i find config file exist
in divided directory.

so i have to change path to modify config file.

why not use user defined config file?

i m lazy man, so i choose solr.



-- 
regards
jl

Re: just advice

Posted by James liu <li...@gmail.com>.
HMmm....

mkdir+ln-s => solve my problem

thks hoss.

2007/4/28, Chris Hostetter <ho...@fucit.org>:
>
>
> : i will use /usr/solrapp/conf/solr1_solrconfig.xml, solr2_solrconfig.xml,
> : solr3_solrconfig.xml...and so.
> :
> : when i test these instance, i just stay in /usr/solrapp.conf/,,,not like
> : now,
> :
> : i have to change
> :
> /usr/solrapp/solr1/conf,,,/usr/solrapp/solr2/conf,,,/usr/solrapp/solr3/conf,
>
> Hmmm... i suppose Solr could support a system property for overriding the
> name ofhte solrconfig.xml file ... but honestly i think a simpler way to
> get the behavior you are describing for your development envirnment would
> be to have seperate solr.home directories for each of your indexes, leave
> the config files named solrconfig.xml in each, and mke a new directory
> containing symlinks to each of those config files with wahtever ame you
> want that helps you remember what it's for.
>
>
>
> -Hoss
>
>


-- 
regards
jl

Re: just advice

Posted by Chris Hostetter <ho...@fucit.org>.
: i will use /usr/solrapp/conf/solr1_solrconfig.xml, solr2_solrconfig.xml,
: solr3_solrconfig.xml...and so.
:
: when i test these instance, i just stay in /usr/solrapp.conf/,,,not like
: now,
:
: i have to change
: /usr/solrapp/solr1/conf,,,/usr/solrapp/solr2/conf,,,/usr/solrapp/solr3/conf,

Hmmm... i suppose Solr could support a system property for overriding the
name ofhte solrconfig.xml file ... but honestly i think a simpler way to
get the behavior you are describing for your development envirnment would
be to have seperate solr.home directories for each of your indexes, leave
the config files named solrconfig.xml in each, and mke a new directory
containing symlinks to each of those config files with wahtever ame you
want that helps you remember what it's for.



-Hoss


Re: just advice

Posted by James liu <li...@gmail.com>.
Just path. for example.

i have a slaver and have 10 instances which name like solr1, solr2,solr3...

if solr support user define config file 's path..

i will use /usr/solrapp/conf/solr1_solrconfig.xml, solr2_solrconfig.xml,
solr3_solrconfig.xml...and so.

when i test these instance, i just stay in /usr/solrapp.conf/,,,not like
now,

i have to change
/usr/solrapp/solr1/conf,,,/usr/solrapp/solr2/conf,,,/usr/solrapp/solr3/conf,

sometimes i have to use pwd to be sure which solr instance now i config.



2007/4/25, Chris Hostetter <ho...@fucit.org>:
>
>
> : i use solr multi instance, now i m testing solr and i find config file
> exist
> : in divided directory.
> :
> : so i have to change path to modify config file.
> :
> : why not use user defined config file?
>
> i'm not sure if i understand your question ... you want to be able to tell
> Solr to use a different config file? ... how would you configure the name
> of the config file?
>
>
>
>
> -Hoss
>
>


-- 
regards
jl

Re: just advice

Posted by Chris Hostetter <ho...@fucit.org>.
: i use solr multi instance, now i m testing solr and i find config file exist
: in divided directory.
:
: so i have to change path to modify config file.
:
: why not use user defined config file?

i'm not sure if i understand your question ... you want to be able to tell
Solr to use a different config file? ... how would you configure the name
of the config file?




-Hoss