Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9565 Make every UpdateRequestProcessor available implicitly
  3. SOLR-10869

Make StatelessScriptUpdateProcessorFactory as Runtime URP; take params(s) with request

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: update
    • Labels:
      None

      Description

      We are trying to get rid of processor definitions in SolrConfig for all URPs and take parameters in the request itself.

      StatelessScriptUpdateProcessorFactory will be able to execute by sample curl like below:

      curl -X POST -H Content-Type: application/json  http://localhost:8983/solr/test/update/json/docs?processor=StatelessScript&script.file=1.js&script.file=2.js&script.file=3.js&script.params=keyA:valueA&script.params=keyB:valueB&script.params=keyC:valueC&script.engine= rhino&commit=true --data-binary { "id" : "1" , "title_s" : "title_random" }
      

      All the param(s) for this URP available can be passed as request handler param(s). The scripts will be executed in the order the parameters are received.

      Configuration for StatelessScriptUpdateProcessorFactory in solrconfig.xml is optional. Backcompat is intact.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sarkaramrit2@gmail.com Amrit Sarkar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: