Query functions

Continuing the discussion from Query for field LIKE '' or "" returns nothing:

Enonic version: 6.8.0
OS: Linux

Could it be an idea to write our own compare functions to use in queries:

Then I could use pure js to figure out whether a field was empty or null.
I could check if a string was longer than something.
Or contains an uppercase character.
Or whatever else crazy idea comes to mind :slight_smile:

This? https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-script-query.html

We will avoid opening for scripts in queries. partly because of complexity and partly because of security.