Closed Twilight-Shuxin closed 1 year ago
Given this XML document:
<M v="a"/>
and XPath Query
//M/descendant-or-self::M[contains-token(@v, "a")]
after creating token index BaseX returns empty result set.
Should return node M as before token index is created.
create database test <M v="a"/>
create index token
xquery //M/descendant-or-self::M[contains-token(@v, "a")]
No response
BaseX version: BaseX 10.7 beta latest commit 27725e9 on Windows
Thanks for the observation. I noticed it also fails with the default attribute index:
//M/descendant-or-self::M[@v = 'a']
Fixed (for all index types).
Description of the Problem
Given this XML document:
and XPath Query
after creating token index BaseX returns empty result set.
Expected Behavior
Should return node M as before token index is created.
Steps to Reproduce the Behavior
create database test <M v="a"/>
create index token
xquery //M/descendant-or-self::M[contains-token(@v, "a")]
Do you have an idea how to solve the issue?
No response
What is your configuration?
BaseX version: BaseX 10.7 beta latest commit 27725e9 on Windows