[ 
https://issues.apache.org/jira/browse/SOLR-10869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amrit Sarkar updated SOLR-10869:
--------------------------------
    Issue Type: Sub-task  (was: Improvement)
        Parent: SOLR-9565

> Make StatelessScriptUpdateProcessorFactory as Runtime URP; take params(s) 
> with request
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-10869
>                 URL: https://issues.apache.org/jira/browse/SOLR-10869
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: update
>            Reporter: Amrit Sarkar
>            Priority: Minor
>
> 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:
> {code}
> 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" }
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to