That sounds normal: ')' is punctuation. So without the punctuation-sensitive option, it is just a word-break token and cts:highlight will not use it.
You can see somewhat similar behavior with google at https://www.google.com/search?q="fubar)" - except that google does not have a punctuation-sensitive option at all. -- Mike On 20 Jan 2014, at 06:16 , judie pearline <[email protected]> wrote: > Hi all, > > Please find the sample code snippet: > > let $x := <p>The price(value) of anything is the amount of life you exchange > for it</p> > let $query := cts:or-query(cts:word-query("price(value)", > ("case-insensitive","punctuation-insensitive","unstemmed","unwildcarded","lang=en"), > 1)) > return cts:highlight($x, $query, <b>{$cts:text}</b>) > > The closing bracket is not getting highlighted when we specify the option as > "punctuation-insensitive", but its getting highlighted when we give it as > "punctuation-sensitive". > > Can you please throw some light on this. > > > Regards, > Judy > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
