: 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...

http://wiki.apache.org/solr/UpdateJSON?highlight=%28overwrite%29#Update_Commands

...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.


-Hoss

Reply via email to