The idea is to send req to http://server.com/solr.

Here are some sample URLs:

http://server.com/solr?custom_param1=aaa&custom_param2=bbb

http://server.com/solr?custom_param1=ccc&custom_param2=dddd

as I said we have our own search handler (wrapping handleRequestBody method and adding logic before it) where we convert those custom_paramX params into Solr understandable params like q, fq, facet, etc. Then we delegate to Solr to process them.

So what I want to do is core0 handle things if custom_param1=aaa and core1 if custom_param1=ccc.


So I'm looking for another way of core selection then selection by URL path part.

Thanx,



If I understand you correctly, you would use a multicore setup and send the
request to http://server.com/solr/core0 in one case, and
http://server.com/solr/core1 in the other.

Is there something else that makes this complicated?

cheers,

Travis

On Thu, Nov 1, 2012 at 12:08 PM, Dzmitry Petrushenka <dpetr...@gmail.com>wrote:

Hi All!

I need to be able to send requests to 2 different cores based on the value
of some request parameter.

First core (active) contains most recent docs. This core is used in 99% of
cases.

The second core (it has 100-1000 times more docs then active core) and
used in 0.1% of cases.

We wrote our own search handler (mostly based on the standard one but
handling our own custom params) and I wonder if there is a way to customize Solr so we could direct calls to the required core based on request params
user passes?

Any help would be helpful.

Thanx,






--
Using Opera's revolutionary email client: http://www.opera.com/mail/

Reply via email to