Hi,

Sorry if this is too basic, but I’m trying to get the positions of the matched tokens in a full-text query, and I can’t find the way to do it. I imagine something like:

for $sentence in //sentence
where $sentence[text() contains text { ‘DNA', ‘oxidation' }]
return <positions>ft:SOME-FUNCTION-FOR-TOKENS-POSITIONS($sentence[text() contains text { ‘DNA', ‘oxidation' }])</positions>

Is this possible?

Thank you in advance,

Javier