Hi All,
Finally I made the multicore thing running by copying the core0 and core1
directory to $solr.home and putting a solr.xml file under the same
directory. A bit relieved !
I would like to do on-the-fly registration of core[I've provision to add
unique corenames everytime I register a new one] and as per the basic
requirements mentioned in the wiki[http://wiki.apache.org/solr/CoreAdmin] I
did the following:
1. set persistent="true" and sharedLIb="lib"
 For this I actually copied the file given in wiki and put it under
solr.home. Started tomcat and tried to register a new core named core3 like
this[I'm running solr on 8080]
 http://localhost:8080/solr/admin/cores?action=CREATE&name=core2
 and the browser gave me error saying that instanceDir is missing, Agreed
its missing but do I need to provide the path to a new directory everytime a
register a new core or any old core'x directory will do the job? Then I
copied an existing directory core0 to core2 with all its /bin and /conf and
other stuffs. Then I tried to refresh the earlier page in firefox and WOW it
worked. Then to confirm that the new core details has been added to solr.xml
I cross checked the file and found a new entry for core2. Its working.

Now let me mention what I want to do,
# I want multiple cores, true but all the core will essentially have the
same schema and config as well.
# I want separete index for each core so that during posting and searching I
can search a specific core

Now I've certain doubts about these things.
1. Do we have to create a new directory with all those /bin and /conf
everytime we've to register a new core. This sounds silly and I'm pretty
sure I must be wrong . There must be some way to just say that : Create this
new core having the core name as ABXZ. The wiki does say the last three
parameters are optinal [Wiki:Note that config ,schema & dataDir parameters
are optional.] Can't we have some base schema and config file say under
$solr.home [or may be somewhere else if that creates problem] and everytime
we create a new core just point to those. Can someone give me direct
examples for the same[the wiki does say about this but I'm not completely
clear about that, some examples will do the job].
2. Do we have to make sure that the data directory is sitting inside coreX
directory, or we can put it elsewhere?

Thank you very much.
KK.

Reply via email to