Hi,

I’m not sure this is the right place, hopefully you can help. Anyway, I also
sent mail to solr-user@lucene.apache.org

I’m using solr – one master with 17 slaves in the server and using solrj as
the java client

Currently there’s only one core in all of them (master and slaves) – only
the cpaCore.

I thought about using multi-cores solr, but I have some problems with that.

I don’t know in advance which cores I’d need – 

When my java program runs, I call for documents to be index to a certain
url, which contains the core name, and I might create a url based on core
that is not yet created. For example:

(at the begining, the only core is cpaCore)

Calling to index – http://localhost:8080/cpaCore  - existing core,
everything as usual
Calling to index -  http://localhost:8080/newCore - Currently throws
excecption. what I'd like to happen is - server realizes there’s no core
“newCore”, creates it and indexes to it. After that – also creates the new
core in the slaves
Calling to index – http://localhost:8080/newCore  - existing core,
everything as usual

What I’d like to have on the server side to do is realize by itself if the
cores exists or not, and if not  - create it

One other restriction – I can’t change anything in the client side – calling
to the server can only make the calls it’s doing now – for index and search,
and cannot make calls for cores creation via the CoreAdminHandler. All I can
do is something in the server itself

What can I do to get it done? Write some RequestHandler? REquestProcessor?
Any other option?

Thanks, nizan

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-dynamic-core-creation-tp1867705p1867705.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to