Maybe this is what I need? https://solr.apache.org/guide/8_11/json-request-api.html JSON Request API | Apache Solr Reference Guide 8.11<https://solr.apache.org/guide/8_11/json-request-api.html> JSON Parameter Merging. If multiple json parameters are provided in a single request, Solr attempts to merge the parameter values together before processing the request.. The JSON Request API has several properties (filter, fields, etc) which accept multiple values.During the merging process, all values for these "multivalued" properties are retained. solr.apache.org
________________________________ From: Matthew Castrigno <castr...@slhs.org> Sent: Friday, September 30, 2022 12:16 PM To: users@solr.apache.org <users@solr.apache.org> Subject: Is this possible? Transform JSON to conform to existing UpdateRequestHandler 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. ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside the St. Luke's email system. ZjQcmQRYFpfptBannerEnd 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." ---------------------------------------------------------------------- "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."