Dear Liam,

I am afraid that full text index will not find "blue socks", because it does 
not cross text() node boundaries:

http://docs.basex.org/wiki/Full-Text#Mixed_Content

Best regards,
Fabrice


-----Message d'origine-----
De : [email protected] 
[mailto:[email protected]] De la part de Liam R. E. 
Quin
Envoyé : jeudi 10 décembre 2015 21:37
À : Christian Grün <[email protected]>; Ron Katriel <[email protected]>
Cc : [email protected]
Objet : Re: [basex-talk] Returning text matches

On Thu, 2015-12-10 at 17:24 +0100, Christian Grün wrote:
> Hi Ron,
> 
> You can use ft:mark and ft:extract to highlights matches in a 
> full-text result [1].

And what happens if a full text match crosses an element boundary, e.g.
a search for "blue socks" matching,
<p>He wore <sc>dark blue</sc> socks that day.</p> could not return, <p>He wore 
<sc>dark <match>blue</sc> socks</match> that day.</p>

(Yes, I should test it, sorry! but the docs should probably mention it.
it was a big part of the XPath/XQuery Full Text design early on)

Liam

--
Liam R. E. Quin <[email protected]>
The World Wide Web Consortium (W3C)

Reply via email to