lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gora Mohanty <>
Subject Re: update doc with a xml-format string
Date Fri, 20 Dec 2013 08:33:10 GMT
On 20 December 2013 13:57, YouPeng Yang <> wrote:
> Hi solr users
>   I have a  string field to store a xml string. Now I want to update the
> field.I use the command.
> name="name">shardTv_20131031</field><field update="set"
> name="jobFirstRunExpress" >"<root><conditionGroup><conditionEntry
> type=\"string\" isChangeable=\"true\"
> <op>and</op> <conditionEntry type=\"string\" isChangeable=\"true\"
> "</field></doc></add>&commit=true
> The red color string is what I want to update .However it give out an error:

Um, the error message is pretty clear. Your XML is not in the format
that Solr expects: You have a <root> tag that Solr does not understand.
Please see for the
required XML format.


View raw message