Hi Thanks for your reply. The <root>....</root> is actually what I want to update the doc. That is I intend to update the xml string to one of the fields of my doc. The url I have not found I want. Any way,thanks a lot.
Regards. 2013/12/20 Gora Mohanty <g...@mimirtech.com> > On 20 December 2013 13:57, YouPeng Yang <yypvsxf19870...@gmail.com> 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. > > > > http://10.7.23.122:8080/solr/meta_core/update?stream.body= > <add><doc><field > > name="name">shardTv_20131031</field><field update="set" > > name="jobFirstRunExpress" >"<root><conditionGroup><conditionEntry > > type=\"string\" isChangeable=\"true\" > >><key>REP_DATE</key><op>></op><val>20130930</val></conditionEntry> > > <op>and</op> <conditionEntry type=\"string\" isChangeable=\"true\" > > >><key>REP_DATE</key><op><</op><val>20131003</val></conditionEntry></conditionGroup></root> > > "</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 http://wiki.apache.org/solr/UpdateXmlMessages for the > required XML format. > > Regards, > Gora >