Thank you very much. LOL, Its in the same wiki I was told to go through.
I've a question regarding creating ofsolr cores on the fly. The wiki says,
.....Creates a new core and register it. If persistence is enabled
(persist=true), the configuration for this new core will be saved in
'solr.xml'. If a core with the same name exists, while the "new" created
core is initializing, the "old" one will continue to accept requests. Once
it has finished, all new request will go to the "new" core, and the "old"
core will be unloaded.....
So I've to wait for some time [say a couple of secs, may be less than that]
before I start adding pages to that core. I think this is the way to handle
it , otherwise some content which should have been indexed by the new core,
will get indexed by the existing core[as the wiki says], which I don't want
to happen. Any other ideas for handling the same.
Thanks,
KK.
Post by Noble Paul à´¨àµà´¬à´¿à´³àµâ नà¥à¤¬à¥à¤³à¥Solr already supports this .
please refer this
http://wiki.apache.org/solr/CoreAdmin#head-7ca1b98a9df8b8ca0dcfbfc49940ed5ac98c4a08
ensure that your solr.xml is persistent
http://wiki.apache.org/solr/CoreAdmin#head-7508c24c6e2dadad2dfea39b2fba045062481da8
Post by KKThank you very much. Got the point.
One off the track question, can we automate the creation of new cores[it
requires manually editing the solr.xml file as I know, and what about the
location of core index directory, do we need to point that manually as
well].
After going through the wiki what I found is we've to mention the names
of
Post by KKcores in solr.xml. I want to automate the process in such a way that when
a
Post by KKuser registers[ on say my site for the service], we'll create a
coresponding
Post by KKcore for the same user and with a specific core id[unique for this user
only] so that the user will be given a search interface that will
redirect
Post by KKall searches for this user to http://host:port/<unique core name for
this
Post by KKuser>/select
Will apprecite any ideas on this.
Thanks,
KK.
Post by Noble Paul à´¨àµà´¬à´¿à´³àµâ नà¥à¤¬à¥à¤³à¥there is no hard limit on the no:of cores. it is limited by your
system's ability to open files and the resources.
the queries are automatically sent to appropriate core if your url is
htt://host:port/<corename>/select
Post by KKI want to know the maximum no of cores supported by Solr. 1000s or may
be
Post by KKPost by Noble Paul à´¨àµà´¬à´¿à´³àµâ नà¥à¤¬à¥à¤³à¥Post by KKmillions all under one solr instance ?
Also I want to know how to redirect a particular query to a particular
core.
Post by KKActually I'm querying solr from Ajax, so I think there must be some
request
Post by KKparameter that says which core we want to query, right? Can some one
tell
Post by KKPost by Noble Paul à´¨àµà´¬à´¿à´³àµâ नà¥à¤¬à¥à¤³à¥me
Post by KKhow to do this, any good pointers on the same will be helpful as well.
Thank you.
--kk
--
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com
--
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com