You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2014/12/22 14:02:13 UTC
[jira] [Comment Edited] (SOLR-6770) Add/edit param sets and use
them in Requests
[ https://issues.apache.org/jira/browse/SOLR-6770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255629#comment-14255629 ]
Noble Paul edited comment on SOLR-6770 at 12/22/14 1:01 PM:
------------------------------------------------------------
yes we can change the key
If we don't specify the content type curl sets it to {{application/x-www-form-urlencoded}} so we can't omit it in the examples
was (Author: noble.paul):
yes we can change the key
specifying the content type can be made optional
> 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"
> }'
> #do a GET to view all the configured params
> curl http://localhost:8983/solr/collection1/config/params
> #or GET with a specific name to get only one set of params
> curl http://localhost:8983/solr/collection1/config/params/x
> {code}
> This data will be stored in conf/params.json
> This is used requesttime and adding/editing params will not result in core reload and it will have no impact on the performance
> example usage http://localhost/solr/collection/select?useParams=x,y
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org