Class IndexResolver

java.lang.Object
org.elasticsearch.xpack.esql.session.IndexResolver

public class IndexResolver extends Object
  • Field Details

    • ALL_FIELDS

      public static final Set<String> ALL_FIELDS
    • INDEX_METADATA_FIELD

      public static final Set<String> INDEX_METADATA_FIELD
    • UNMAPPED

      public static final String UNMAPPED
      See Also:
    • FIELD_CAPS_INDICES_OPTIONS

      public static final IndicesOptions FIELD_CAPS_INDICES_OPTIONS
  • Constructor Details

    • IndexResolver

      public IndexResolver(Client client)
  • Method Details

    • resolveAsMergedMapping

      public void resolveAsMergedMapping(String indexWildcard, Set<String> fieldNames, QueryBuilder requestFilter, boolean includeAllDimensions, boolean useAggregateMetricDoubleWhenNotSupported, boolean useDenseVectorWhenNotSupported, ActionListener<IndexResolution> listener)
      Resolves a pattern to one (potentially compound meaning that spawns multiple indices) mapping.
    • resolveAsMergedMappingAndRetrieveMinimumVersion

      public void resolveAsMergedMappingAndRetrieveMinimumVersion(String indexWildcard, Set<String> fieldNames, QueryBuilder requestFilter, boolean includeAllDimensions, boolean useAggregateMetricDoubleWhenNotSupported, boolean useDenseVectorWhenNotSupported, ActionListener<Versioned<IndexResolution>> listener)
      Resolves a pattern to one (potentially compound meaning that spawns multiple indices) mapping. Also retrieves the minimum transport version available in the cluster (and remotes).
    • mergedMappings

      public static IndexResolution mergedMappings(String indexPattern, IndexResolver.FieldsInfo fieldsInfo)