Class EsqlFlags
java.lang.Object
org.elasticsearch.xpack.esql.plugin.EsqlFlags
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe maximum number of rounding points to push down to Lucene for theroundTofunction at cluster level. -
Constructor Summary
ConstructorsConstructorDescriptionEsqlFlags(boolean stringLikeOnIndex) Constructor for tests.EsqlFlags(boolean stringLikeOnIndex, int roundToPushdownThreshold) Constructor for tests.EsqlFlags(int roundToPushdownThreshold) Constructor for tests.EsqlFlags(ClusterSettings settings) -
Method Summary
-
Field Details
-
ESQL_STRING_LIKE_ON_INDEX
-
ESQL_ROUNDTO_PUSHDOWN_THRESHOLD
The maximum number of rounding points to push down to Lucene for theroundTofunction at cluster level.ReplaceRoundToWithQueryAndTagschecks this threshold before rewritingRoundToto range queries. There is also a query level ROUNDTO_PUSHDOWN_THRESHOLD defined inQueryPragmas. The cluster level threshold defaults to 127, it is the same as the maximum number of buckets used inRounding. The query level threshold defaults to -1, which means this query level setting is not set and cluster level upper limit will be used. If query level threshold is set to greater than or equals to 0, the query level threshold will be used, and it overrides the cluster level threshold. If the cluster level threshold is set to -1 or 0, noRoundTopushdown will be performed, query level threshold is not set to -1 or 0.
-
-
Constructor Details
-
EsqlFlags
public EsqlFlags(boolean stringLikeOnIndex) Constructor for tests. -
EsqlFlags
public EsqlFlags(int roundToPushdownThreshold) Constructor for tests. -
EsqlFlags
public EsqlFlags(boolean stringLikeOnIndex, int roundToPushdownThreshold) Constructor for tests. -
EsqlFlags
-
-
Method Details
-
stringLikeOnIndex
public boolean stringLikeOnIndex() -
roundToPushdownThreshold
public int roundToPushdownThreshold()
-