Package org.elasticsearch.xpack.esql.optimizer.rules.physical.local
package org.elasticsearch.xpack.esql.optimizer.rules.physical.local
-
ClassDescriptionWhen a spatial distance predicate can be pushed down to lucene, this is done by capturing the distance within the same function.Materialize the concrete fields that need to be extracted from the storage until the last possible moment.When deciding if a filter or topN can be pushed down to Lucene, we need to check a few things on the field.Looks for the case where certain stats exist right before the query and thus can be pushed down.We handle two main scenarios here: Queries like `FROM index | SORT field` will be pushed to the source if the field is an indexed field.This rule is responsible for marking spatial fields to be extracted from doc-values instead of source values.This rule is responsible for marking spatial shape fields whose extent can be extracted from the binary representation encoded by
GeometryDocValueWriter.