[
https://issues.apache.org/jira/browse/SOLR-6770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Noble Paul updated SOLR-6770:
-----------------------------
Description:
Make it possible to define paramsets and use them directly in requests
example
{code}
curl http://localhost:8983/solr/collection1/config/params -H
'Content-type:application/json' -d '{
"create" : {"name" ,"x"
"val": {
"a":"A val",
"b": "B val"}
},
"update" : {"name" ,"y"
"val": {
"x":"X val",
"Y": "Y val"}
},
"delete" : "z"
}'
{code}
This data will be stored in conf/paramsets.json
example usage http://localhost/solr/collection/select?useParams=x
or it can be directly configured with a request handler as follows
{code}
<requestHandler name="/dump1" class="DumpRequestHandler" useParams="x"/>
{code}
was:
Make it possible to define paramsets and use them directly in requests
example
{code}
curl http://localhost:8983/solr/collection1/config/params -H
'Content-type:application/json' -d '{
"create-paramset" : {"name" ,"x"
"val": {
"a":"A val",
"b": "B val"}
},
"update-paramset" : {"name" ,"y"
"val": {
"x":"X val",
"Y": "Y val"}
},
"delete-paramset" : "z"
}'
{code}
This data will be stored in conf/paramsets.json
Any changes to these are only applied at the request time and no core reload is
required but , all nodes will get notified of the changes and all of them will
have the latest version of this all the time
example usage http://localhost/solr/collection/select?useParams=x
or it can be directly configured with a request handler as follows
{code}
<requestHandler name="/dump1" class="DumpRequestHandler" useParams="x"/>
{code}
> Add/edit param sets and use them in Requests
> --------------------------------------------
>
> Key: SOLR-6770
> URL: https://issues.apache.org/jira/browse/SOLR-6770
> Project: Solr
> Issue Type: Sub-task
> Reporter: Noble Paul
> Assignee: Noble Paul
>
> Make it possible to define paramsets and use them directly in requests
> example
> {code}
> curl http://localhost:8983/solr/collection1/config/params -H
> 'Content-type:application/json' -d '{
> "create" : {"name" ,"x"
> "val": {
> "a":"A val",
> "b": "B val"}
> },
> "update" : {"name" ,"y"
> "val": {
> "x":"X val",
> "Y": "Y val"}
> },
> "delete" : "z"
> }'
> {code}
> This data will be stored in conf/paramsets.json
> example usage http://localhost/solr/collection/select?useParams=x
> or it can be directly configured with a request handler as follows
> {code}
> <requestHandler name="/dump1" class="DumpRequestHandler" useParams="x"/>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]