Hi Daniel The CDATA block works. the raw data is actually what I want. Thanks a lot
Regards 2013/12/20 yypvsxf19870706 <yypvsxf19870...@gmail.com> > Your suggestions light me. The type is just string. > I will try the left advices . > Thanks a lot. > > 发自我的 iPhone > > 在 2013-12-20,19:09,Daniel Collins <danwcoll...@gmail.com> 写道: > > > What's the schema definition for that field? Are you stripping HTML in > > your analyzer chain? Can you run it through the analyzer screen in the > > admin UI to confirm that the raw data goes through as you expect? > > Can you add a document via the admin UI and see that the data in the > index > > is correct? Have you ever had valid data in that field? > > > > That would already confirm whether the problem is in your index > definition > > or your indexing code. > > > > You still haven't given us much to go on... > > > > > > On 20 December 2013 10:57, YouPeng Yang <yypvsxf19870...@gmail.com> > wrote: > > > >> Hi > >> thanks. > >> I add the CDATA like : > >> > >> > >> update?stream.body=<add><doc><field > >> name="name">shardTv_20131031</field><field update="set" > >> name="jobFirstRunExpress" > ><![CDATA[<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 > >> > >> and the field jobFirstRunExpress in the doc just like : > >> > >> jobFirstRunExpress":"REP_DATE>20130930 and REP_DATE<20131003" > >> > >> it seems the xml tags were omitted. > >> > >> > >> > >> > >> > >> > >> 2013/12/20 Gora Mohanty <g...@mimirtech.com> > >> > >>> On 20 December 2013 14:18, YouPeng Yang <yypvsxf19870...@gmail.com> > >> wrote: > >>>> 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. > >>> [...] > >>> > >>> Ah, sorry, I missed that. As others have followed up, you need > >>> to escape the XML that is within that field. > >>> > >>> Regards, > >>> Gora > >> >