On Fri, 2020-06-05 at 12:38 +0000, ETANCHAUD Fabrice wrote:
> Hi all BaseX users,
> 
> When I search for 'YET_ANOTHER_SILLY_KEYWORD', ft:search gives me all
> text nodes containing any of the YET ANOTHER SILLY KEYWORD words.

Does it work to put the phrase in double quotes?

  ft:search(...'"the-phrase_here"'

?

Or use, //p[. contains text "the_word_with_underscores"] ?

(i've use contains text followed by ft:mark() to do match highlighting)

Liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

Reply via email to