Hello,


I am new to SOLR and I am trying to configure it to accept existing API 
definition.



I need to create a requestHandler that will perform index operations based on 
the value in a specific field as opposed to using a parameter in the request.



Ie. A payload that may look like this:

{"id":"unique id",

"command":"add",

"content":"mycontent"}



Based on the value of command, either an add or delete operation would occur. I 
would like to know if I can accomplish this strictly with solrconfig.xml 
utilizing the solr.UpdateRequestHandler like this:


  <requestHandler name="/index" class="solr.UpdateRequestHandler" />

...


Or do I have to write a custom class?



I realize this odd but I am working with requests that are formed in an 
existing way that I cannot change, I can only change the domain.


All comments appreciated.

Thank you.

----------------------------------------------------------------------
"This message is intended for the use of the person or entity to which it is 
addressed and may contain information that is confidential or privileged, the 
disclosure of which is governed by applicable law. If the reader of this 
message is not the intended recipient, you are hereby notified that any 
dissemination, distribution, or copying of this information is strictly 
prohibited. If you have received this message by error, please notify us 
immediately and destroy the related message."

Reply via email to