Hello, Matthew.
I think you can create your own UpdateRequestProcessor and hook it up in
the chain. Please check
https://solr.apache.org/guide/8_1/update-request-processors.html#update-request-processor-factories

Regards

On Sat, Oct 1, 2022 at 12:16 AM Matthew Castrigno <castr...@slhs.org> wrote:

>
>
> 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."
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to