[
https://issues.apache.org/jira/browse/SOLR-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659955#action_12659955
]
Yonik Seeley commented on SOLR-945:
-----------------------------------
The API looks like a direct translation of the XML API.... that's a reasonable
approach, but we should also take this chance to revisit and see what we might
want to change.
If we were to do it over again (now that we can grab params from the URL in a
POST), would we prefer removing the adjectives like "add" and some of the other
parameters from the XML?
{code}
http://localhost:8983/solr/update/add?commitWithin=1234
{
"docs":[
{ "f0": "v0",
"f2": {
"boost": 2.3,
"value": "test"}
},
{ "fo":"zzz",
"f1":"ggg"
}
]
}
for deletes,
http://localhost:8983/solr/update/delete?q=foo:1234 (or
/update?delete=foo:1234)
{code}
> JSON update handler
> -------------------
>
> Key: SOLR-945
> URL: https://issues.apache.org/jira/browse/SOLR-945
> Project: Solr
> Issue Type: New Feature
> Reporter: Ryan McKinley
> Attachments: SOLR-945-json-update.patch
>
>
> In addition to supporting xml and csv updating, it would be good to support
> json.
> This patch uses [noggit|http://svn.apache.org/repos/asf/labs/noggit/], a
> streaming json parser, to build the commands.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.