Class IndexNameExpressionResolver.SystemResourceAccess

java.lang.Object
org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.SystemResourceAccess
Enclosing class:
IndexNameExpressionResolver

public static final class IndexNameExpressionResolver.SystemResourceAccess extends Object
In this class we collect the system access relevant code. The helper methods provide the following functionalities: - determining the access to a system index abstraction - verifying the access to system abstractions and adding the necessary warnings - determining the access to a system index based on its name WARNING: we have observed differences in how the access is determined. For now this behaviour is documented and preserved.
  • Method Details

    • isSystemIndexAbstractionAccessible

      public static boolean isSystemIndexAbstractionAccessible(IndexNameExpressionResolver.Context context, IndexAbstraction abstraction)
      Checks if this system index abstraction should be included when resolving via IndexNameExpressionResolver.WildcardExpressionResolver.resolveEmptyOrTrivialWildcardWithAllowedSystemIndices(Context, String[]). NOTE: it behaves differently than shouldExpandToSystemIndexAbstraction(Context, IndexAbstraction) because in the case that the access level is BACKWARDS_COMPATIBLE_ONLY it does not include the net-new indices, this is questionable.