This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Description
On kibana, people tend to not specify field when querying. For example,
instead of doing field:XXX, users just type XXX.
I get why quesma attempts to match it with all fields. However it is inefficient. esp when, many fields are low cardinality .Do you plan to do some field inference? I have 2 ideas:
- in configuration at startup time, allow specifying regex. and if the right hand side (XXX in this example) does not matcg regex. Do not add it to WHERE clause.
- periodically, do SELECT distinct for the low cardinality fields (either specified in ch table comment or in conf.) and just match that.