Amrit Sarkar created SOLR-10869:
-----------------------------------
Summary: 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: Improvement
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&statelessscript.script=1.js&statelessscript.script=2.js&statelessscript.script=3.js&statelessscript.params=keyA:valueA&statelessscript.params=keyB:valueB&statelessscript.params=keyC:valueC&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.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]