Skip to content

Commit 6401a6c

Browse files
authored
[DOCS] Add PUT example to Date math in index names (#60908) (#60921)
Previously, all examples in this section were GET requests. This demonstrates that other CRUD operations are also supported.
1 parent 3b85b45 commit 6401a6c

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

docs/reference/api-conventions.asciidoc

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,10 @@ You must enclose date math index name expressions within angle brackets, and
8585
all special characters should be URI encoded. For example:
8686

8787
[source,console]
88-
----------------------------------------------------------------------
89-
# GET /<logstash-{now/d}>/_search
90-
GET /%3Clogstash-%7Bnow%2Fd%7D%3E/_search
91-
{
92-
"query" : {
93-
"match": {
94-
"test": "data"
95-
}
96-
}
97-
}
98-
----------------------------------------------------------------------
99-
// TEST[s/^/PUT logstash-2016.09.20\n/]
100-
// TEST[s/now/2016.09.20%7C%7C/]
88+
----
89+
# PUT /<my-index-{now/d}>
90+
PUT /%3Cmy-index-%7Bnow%2Fd%7D%3E
91+
----
10192

10293
[NOTE]
10394
.Percent encoding of date math characters

0 commit comments

Comments
 (0)