From: Mike S. <so...@if...> - 2009-10-29 18:35:04
|
It looks as if you just need to query the document element; what's the query you're trying that's failing, and what indexes do you have defined? -Mike Zac Marsh wrote: > Hi Mike, > > Thanks for the response. > > The following is a snippet from the XML we are consuming. When using > XQuery to do a full-text search within the CDATA section, eXist does > not return results. > > <docset> > <document><![CDATA[ > Oct. 29 (Bloomberg) -- The U.S. economy returned to growth in the > third quarter after a yearlong contraction as government incentives > spurred consumers to spend more on homes and cars. > > The world’s largest economy expanded at a 3.5 percent pace from July > through September, figures from the Commerce Department showed today > in Washington. Household purchases climbed 3.4 percent, the most in > two years. > ]]> > </document> > <docTitle/> > </docset> > > On Thu, Oct 29, 2009 at 1:48 PM, Mike Sokolov <so...@if...> wrote: > >> I think the thread you referenced dealt with CDATA in a pretty definitive >> way: basically, indexes are created for elements and attributes: CDATA is >> neither - it's just a special kind of text, so to speak, so its contents are >> only indexed as part of any (indexed) element that contains it. Changing >> that would break other things, so it's not likely to change. >> >> It's possible that if you post some of your content and describe the >> intended query behaviour, that readers of the list would be able to propose >> a workable solution for you. >> >> -Mike >> >> Zac Marsh wrote: >> >>> Hi, >>> >>> I was trying to conduct a XQuery full-text search within a CDATA field >>> - via both Lucene and the built-in full-text configurations. >>> Apparently it did not work. >>> >>> After searching the mail archive, I found the following thread: >>> >>> http://exist-open.markmail.org/search/?q=cdata+full-text#query:cdata%20full-text+page:1+mid:l5b2k2nmd7j5xpzq+state:results >>> >>> Is it still the case? I understand CDATA was intended for comments. >>> But in the XML files we have to consume, a lot of CDATA fields were >>> used to convey useful information(needed to be escaped otherwise). I'd >>> like to know any alternatives that does full-text XQuery within CDATA >>> sections. >>> >>> Thank you >>> Zac >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Exist-open mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >>> >>> |