Query plugin
The query plugin extends the query language and can extend the simple text search, manipulates the query abstract syntax tree (AST) or defines new comparator keys.
The textFn function extends the simple text search if only
an identifier is search.
The transformRules array contains rules of query AST
manipulation on top to down traversal. A transform rule can create new
query AST nodes to insert expressions.
After the AST is build, the filter and sort function is created from
bottom to top. The queryHandler is called in a chain if a
comparison or function key could not be resolved. If the plugin can
handle the query AST node it must return true to skip
further chain evaluation.
See the query package for further details with [debug.js]{.title-ref} script to evaluate and inspect the query AST.