BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
691 stars 265 forks source link

XQFT: different sentence #2088

Closed ChristianGruen closed 2 years ago

ChristianGruen commented 2 years ago
'base.x' contains text 'base x' different sentence

Returns false, whereas true is probably correct.

hrennau commented 2 years ago

Same problem with "different paragraph":

basex "'x
y' contains text 'x y'"
=>
true

basex "'x
y' contains text 'x y' same paragraph"
=>
false

basex "'x
y' contains text 'x y' different paragraph"
=>
false
ChristianGruen commented 2 years ago

I‘ve decided to stick with the current implementation. The spec indicates that:

A scope selection selects matches which satisfy the operand full-text selection and for which the matched tokens and phrases are contained in the same scope or in different scopes.

However, information is missing on what is going to happen with phrases that extend over several scopes.