You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/elasticsearch/rest-apis/api-conventions.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,9 +284,10 @@ In multi-target syntax, you can use a comma-separated list to run a request on m
284
284
285
285
Targets can be excluded by prefixing with the `-` character. This applies to both concrete names and wildcard patterns.
286
286
For example, `test*,-test3` resolves to all resources that start with `test` except for the resource named `test3`.
287
-
It is possible for exclusion to exclude all resources. For example, `test*,-test*`resolves to an empty set.
287
+
It is possible for exclusion to exclude all resources. For example, both `test*,-test*`and `test,-test` resolve to an empty set.
288
288
An exclusion affects targets listed _before_ it and has no impact on targets listed _after_ it.
289
-
For example, `-test3,test*` resolves to all resources that start with `test`, including `test3`.
289
+
For example, `test3*,-test3,test*` resolves to all resources that start with `test`, including `test3`, because it is included
290
+
by the last `test*` pattern.
290
291
291
292
::::{important}
292
293
Aliases are resolved after wildcard expressions. This can result in a request that targets an excluded alias. For example, if `test3` is an index alias, the pattern `test*,-test3` still targets the indices for `test3`. To avoid this, exclude the concrete indices for the alias instead.
Copy file name to clipboardExpand all lines: x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/IndicesAndAliasesResolverTests.java
+42-13Lines changed: 42 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -658,22 +658,51 @@ public void testExclusionByItself() {
0 commit comments