I’ve used my own scripting in https://solr.apache.org/guide/solr/latest/configuration-guide/script-update-processor.html to make decisions…..
> On Oct 1, 2022, at 8:51 AM, Mikhail Khludnev <m...@apache.org> wrote: > > 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 _______________________ Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com <http://www.opensourceconnections.com/> | My Free/Busy <http://tinyurl.com/eric-cal> Co-Author: Apache Solr Enterprise Search Server, 3rd Ed <https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw> This e-mail and all contents, including attachments, is considered to be Company Confidential unless explicitly stated otherwise, regardless of whether attachments are marked as such.