Skip to content

XQuery: Bug on contains-token() with token index #2222

@Twilight-Shuxin

Description

@Twilight-Shuxin

Description of the Problem

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.

Expected Behavior

Should return node M as before token index is created.

Steps to Reproduce the Behavior

  1. Create database create database test <M v="a"/>
  2. Create index token create index token
  3. Execute XPath query 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions