How about cts:search?  Something like:

cts:search(/path/to/htmlBody, "text you are looking for")

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Danny Sinang
Sent: Tuesday, August 14, 2012 9:06 AM
To: general
Subject: [MarkLogic Dev General] Fast full text search

Hi,

Our XML docs have an "htmlBody" element containing html content representing 
book sections.

Every now and then, I need to do a global search for some text within 
"htmlBody".

Doing "fn:contains" takes quite a while. Is there a faster way to do this ?

Regards,
Danny
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to