ok thanks !
Le 26/08/2013 17:52, Jack Krupansky a écrit :
Unfortunately, there is no -Dcore property, so you have to due -Durl -
java -Durl=http://localhost:8983/solr/collection2/update ... -jar
post.jar ...
You have the proper /select syntax.
-- Jack Krupansky
-----Original Message----- From: Bruno Mannina
Sent: Monday, August 26, 2013 9:36 AM
To: solr-user@lucene.apache.org
Subject: Re: Adding one core to an existing core?
Dear Solr User,
now I have 2 cores "collection1" "collection2"
Default collection is the "Collection1"
I have two questions:
- Is exist a parameter to add in my html link to indicate the selected
core?
http://xxx.xxx.xxx.xxx/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
I mean by default is the collection1, if I want "collection2" I use the
link:
http://xxx.xxx.xxx.xxx/solr/collection2/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
Is exist a param &core=collection2 instead of using a different link?
- My second question concerns updating.
Actually with one core, I do:
java -jar post.jar foo.xml
I suppose now I must add the desire core ? no ?
i.e.: -Dcore=collection2
What is the param to add in my command line?
Thanks a lot !
Bruno
Le 22/08/2013 16:23, Andrea Gazzarini a écrit :
First, a core is a separate index so it is completely indipendent
from the already existing core(s). So basically you don't need to
reindex.
In order to have two cores (but the same applies for n cores): you
must have in your solr.home the file (solr.xml) described here
http://wiki.apache.org/solr/Solr.xml%20%28supported%20through%204.x%29
then, you must obviously have one or two directories (corresponding
to the "instanceDir" attribute). I said one or two because if the
indexes configuration is basically the same (or something changes but
is dynamically configured - i.e. core name) you can create two
instances starting from the same configuration. I mean
<solr persistent="true" sharedLib="lib">
<cores adminPath="/admin/cores">
<core name="core0" instanceDir="*conf.dir*" />
<core name="core1" instanceDir="*conf.dir*" />
</cores>
</solr>
Otherwise you must have two different conf directories that contain
indexes configuration. You should already have a first one (the
current core), you just need to have another conf dir with
solrconfig.xml, schema.xml and other required files. In this case
each core will have its own instanceDir.
<solr persistent="true" sharedLib="lib">
<cores adminPath="/admin/cores">
<core name="core0" instanceDir="*conf.dir.core0*" />
<core name="core1" instanceDir="*conf.dir.core1*" />
</cores>
</solr>
Best,
Andrea
On 08/22/2013 04:04 PM, Bruno Mannina wrote:
Little precision, I'm on Ubuntu 12.04LTS
Le 22/08/2013 15:56, Bruno Mannina a écrit :
Dear Users,
(Solr3.6 + Tomcat7)
I use since two years Solr with one core, I would like now to add
one another core (a new database).
Can I do this without re-indexing my core1 ?
could you point me to a good tutorial to do that?
(my current database is around 200Go for 86 000 000 docs)
My new database will be little, around 1000 documents of 5ko each.
thanks a lot,
Bruno