Re: solr dynamic core creation

2010-11-11 Thread nizan

Does anyone has any idea on how to do this?
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-dynamic-core-creation-tp1867705p1881374.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: solr dynamic core creation

2010-11-11 Thread nizan

Hi,

Thanks for the offers, I'll take deeper look into them.

In the offers you showed me, if I understand correctly, the call for
creation is done in the client side. I need the mechanism we'll work in the
server side.

I know it sounds stupid, but I need the client side wouldn't know about
which cores are there or not, and on the server side I (maybe with a
handler?), will understand if the core is not created, and create it if
needed.

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


Re: solr dynamic core creation

2010-11-11 Thread nizan

Hi,

Maybe just don't understand all the concept there and I mix up server and
client...

Client - The place where I make the http calls (for index, search etc.) -
where I use the CommonsHttpSolrServer as the solr server. This machine isn't
defined as master or slave, it just use solr as search engine

Server - The http calls I made in the client, goes to another server, the
master solr server (or one of the slaves), where I have embeddedSolrServer,
aren't they?

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


Dynamic creating of cores in solr

2010-11-10 Thread Nizan Grauer
Hi,

I'm not sure this is the right mail to write to, hopefully you can help or 
direct me to the right person

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:

Calling to index - http://localhost:8080/cpaCore  - existing core, everything 
as usual
Calling to index -  http://localhost:8080/newCore - 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


solr dynamic core creation

2010-11-09 Thread nizan

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.