I've recently discovered this module for xquery on exist db here. There are few methods that I would need to use, but I fail to use them properly. I have a series of test xml files in one collection, and they are all in this form
<root>some string</root>
I am trying to use function text:fuzzy-match-all like this:
xquery version "3.0";
for $doc in collection('/db/testCollection')
return text:fuzzy-match-any($doc,'test')
and I recive empty array as result, and I have at least one xml file that has test for value. I have also tried function text:fuzzy-index-terms like this
xquery version "3.0";
text:fuzzy-index-terms("test")
and again, I receive no results at all. What am I doing wrong?