search beginning of the tag value

Hello,
this query:

_xql=noticia[//p~=‘infringement*’]

find all the ‘noticia’ with

tag that contains a word that begins by “infringement”. But,
How can I get all the ‘noticia’ with

tag whose value begins by “infringement”?

Thanks for your help.

You used the contains operator in your query:
_xql=noticia[//p~=‘infringement*’]

Try it again without that:
_xql=noticia[//p=‘infringement*’]

This should give you all your required documents. To improve performance, turn on standard indexing for your p nodes. In case you used text index so far, switch to standard+text.