Class CoordinatorRewriteContext


public class CoordinatorRewriteContext extends QueryRewriteContext
Context object used to rewrite QueryBuilder instances into simplified version in the coordinator. Instances of this object rely on information stored in the IndexMetadata for certain indices. Right now this context object is able to rewrite range queries that include a known timestamp field (i.e. the timestamp field for DataStreams) into a MatchNoneQueryBuilder and skip the shards that don't hold queried data. See IndexMetadata#getTimestampRange() for more details