lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: does overwrite=false work with json
Date Tue, 12 Apr 2011 01:00:27 GMT
: I tried it with the example json documents, and even if I add 
: overwrite=false to the URL, it still overwrites.
: Do this twice:
: curl 'http://localhost:8983/solr/update/json?commit=true&overwrite=false' --data-binary
@books.json -H 'Content-type:application/json'

...the JSON Update Request Handler doesn't have any docs suggesting that 
you can specify "overwrite" in the URL.

the CSVUpdateRequestHandler supports a lot of options in the URL because 
it doesn't have any way of specifying them as part of the content stream, 
but both the XML and JSON formats look for these options as part of hte 
individual "add" commands.  There is a specifica example of using 
"overwrite" on the JSON Wiki page...

...that said, it would certianly be nice if the default value for all of 
the options that can be specified as part of the data payloads for 
XML/JSON ("overwrite", "commitWithin", "boost", etc...) could be specified 
in the URL ... feel free to open a Jira requesting this.


View raw message