Skip to content

Commit

Permalink
Allow _cat indices & aliases to use indices options (#53248)
Browse files Browse the repository at this point in the history
This commit adjusts the _cat/indices and _cat/aliases APIs to allow
specifying indices options, so that these APIs can handle hidden
indices/aliases in the same way as other APIs.

Also adds the hidden option to the expand_wildcards parameter
in the YAML spec for every API that accepts it.
  • Loading branch information
gwbrown committed Mar 13, 2020
1 parent 59c2eb4 commit d7bbc9d
Show file tree
Hide file tree
Showing 42 changed files with 599 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@
"type":"boolean",
"description":"Verbose mode. Display column headers",
"default":false
},
"expand_wildcards":{
"type":"enum",
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
"default": ["all"],
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@
"type":"boolean",
"description":"If set to true segment stats will include stats for segments that are not currently loaded into memory",
"default":false
},
"expand_wildcards":{
"type":"enum",
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
"default": "all",
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
"default":"all",
"default": ["all"],
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
},
"local":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
Expand Down
Loading

0 comments on commit d7bbc9d

Please sign in to comment.