: i tried issuing a command using curl with xml syntax and it turns out that it
: replace my whole documents rather than updating a specific field this is
: what i gave, i got an impression providing update=set will only changes that
: field rather than reindexing the entire document. Any idea how to issue
: partial updates

What version of solr are you using? partial doc updates is only supported 
in Solr 4.0.

As for your earlier mentioned problem...

: curl 'myhostname:8080/solr/update?commit=true' -H
: 'Content-type:application/json' -d
: '[{"id":"contentId#63481697","price":{"set":16595}}]'
:
: i am getting this error
: <response>
: <lst name="responseHeader"><int name="status">400</int><int
: name="QTime">0</int></lst><lst name="error"><str name="msg">Unexpected
: character '[' (code 91) in prolog; expected '&lt;'
:  at [row,col {unknown-source}]: [1,1]</str><int 
name="code">400</int></lst>
: </response>

...knowing your solr version and solrconfig.xml configuration for the 
"/update" handler is also important here ... according to that error, it 
looks like you are using the "solr.XmlUpdateRequestHandler" which requires 
XML input (as opposed to the "solr.UpdateRequestHandler" new in SOlr 4.0 
which looks at the COntent-Type to select the input format)


-Hoss

Reply via email to