[quote="BBerastegui, post:1, topic:83222"]
And this was working as expected.
It may have worked but I don't think it worked "as expected". The `script.engine.groovy.inline.update` setting doesn't have anything to do with the `regexp` query. Unless you really need to turn on inline groovy scripting I'd turn it off because it is a security nightmare.
I think your issue is that `_uid` changed to not allow those kinds of queries. I opened an issue to discuss it:https://github.com/elastic/elasticsearch/issues/24247
I don't know that we'll want to support those queries for `_uid`, but that'll be settled in the issue. You should be able to work around the issue using a script query and the doc values storage for `_uid` but it'll be much slower because it won't be able to use the index.