You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2008/12/30 07:28:44 UTC
[jira] Updated: (SOLR-945) JSON update handler
[ https://issues.apache.org/jira/browse/SOLR-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley updated SOLR-945:
-------------------------------
Attachment: SOLR-945-json-update.patch
Here is a patch that lets you update sending documents that look like this:
{code}
{
"add": {
"doc": {
"f0": "v0",
"f2": {
"boost": 2.3,
"value": "test"
},
"array": [ "aaa", "bbb" ],
"boosted": {
"boost": 6.7,
"value": [ "aaa", "bbb" ]
}
}
},
"add": {
"commitWithin": 1234,
"overwrite": false,
"boost": 3.45,
"doc": {
"f1": "v1",
"f1": "v2"
}
},
"commit": {},
"optimize": { "waitFlush":false, "waitSearcher":false },
"delete": { "id":"ID" },
"delete": { "query":"QUERY" },
"rollback": {}
}
{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.