Skip to content

Commit e16b386

Browse files
committed
Do not allow closed indices
1 parent 50d0474 commit e16b386

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/IndexResolver.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,18 @@ public class IndexResolver {
5858
public static final IndicesOptions FIELD_CAPS_INDICES_OPTIONS = IndicesOptions.builder()
5959
.concreteTargetOptions(IndicesOptions.ConcreteTargetOptions.ALLOW_UNAVAILABLE_TARGETS)
6060
.wildcardOptions(
61-
IndicesOptions.WildcardOptions.builder()
61+
IndicesOptions.WildcardOptions.builder() //
6262
.matchOpen(true)
6363
.matchClosed(false)
6464
.includeHidden(false)
6565
.allowEmptyExpressions(true)
6666
.resolveAliases(true)
6767
)
6868
.gatekeeperOptions(
69-
IndicesOptions.GatekeeperOptions.builder().ignoreThrottled(true).allowClosedIndices(true).allowAliasToMultipleIndices(true)
69+
IndicesOptions.GatekeeperOptions.builder() //
70+
.ignoreThrottled(true)
71+
.allowClosedIndices(false)
72+
.allowAliasToMultipleIndices(true)
7073
)
7174
.build();
7275

0 commit comments

Comments
 (0)