On Mon, 2021-05-31 at 15:05 +0200, Christian Grün wrote:
let $thes := <thesaurus>...</thesaurus> let $term := 'happy' let $relation := 'RT' let $levels := 1 to 10 let $terms := ft:thesaurus($thes, $term, $relation, $levels) return 'lucky' contains text { $terms }
Do you think that could be helpful?
Yes. I'm also very open to other ways of solving the real request, which is handling a more complex query language, with "a (b|with spaces here|c) d" matching "a b d", "a with spaces d", "a c d"
I could also do it by expanding the query into constant strings of course, and maybe if there's no other demand for this, that's the thing to do.
Thanks for looking at it some more!
Liam