@@ -456,7 +456,7 @@ See some examples of interactions with Elasticsearch with this option set to `fa
456
456
457
457
[source,console]
458
458
--------------------------------------------------
459
- PUT index?include_type_name=false
459
+ PUT /my- index-000001 ?include_type_name=false
460
460
{
461
461
"mappings": {
462
462
"properties": { <1>
@@ -472,7 +472,7 @@ PUT index?include_type_name=false
472
472
473
473
[source,console]
474
474
--------------------------------------------------
475
- PUT index/_mappings?include_type_name=false
475
+ PUT /my- index-000001 /_mappings?include_type_name=false
476
476
{
477
477
"properties": { <1>
478
478
"bar": {
@@ -487,7 +487,7 @@ PUT index/_mappings?include_type_name=false
487
487
488
488
[source,console]
489
489
--------------------------------------------------
490
- GET index/_mappings?include_type_name=false
490
+ GET /my- index-000001 /_mappings?include_type_name=false
491
491
--------------------------------------------------
492
492
// TEST[continued]
493
493
@@ -496,7 +496,7 @@ The above call returns
496
496
[source,console-result]
497
497
--------------------------------------------------
498
498
{
499
- "index": {
499
+ "my- index-000001 ": {
500
500
"mappings": {
501
501
"properties": { <1>
502
502
"foo": {
@@ -521,7 +521,7 @@ generation of the `_id` and `{index}/_doc/{id}` with explicit ids.
521
521
522
522
[source,console]
523
523
--------------------------------------------------
524
- PUT index/_doc/1
524
+ PUT /my- index-000001 /_doc/1
525
525
{
526
526
"foo": "baz"
527
527
}
@@ -530,7 +530,7 @@ PUT index/_doc/1
530
530
[source,console-result]
531
531
--------------------------------------------------
532
532
{
533
- "_index": "index",
533
+ "_index": "my- index-000001 ",
534
534
"_id": "1",
535
535
"_type": "_doc",
536
536
"_version": 1,
@@ -549,7 +549,7 @@ Similarly, the `get` and `delete` APIs use the path `{index}/_doc/{id}`:
549
549
550
550
[source,console]
551
551
--------------------------------------------------
552
- GET index/_doc/1
552
+ GET /my- index-000001 /_doc/1
553
553
--------------------------------------------------
554
554
// TEST[continued]
555
555
@@ -562,14 +562,14 @@ in 7.0 the endpoint will immediately follow the index name:
562
562
563
563
[source,console]
564
564
--------------------------------------------------
565
- POST index/_update/1
565
+ POST /my- index-000001 /_update/1
566
566
{
567
567
"doc" : {
568
568
"foo" : "qux"
569
569
}
570
570
}
571
571
572
- GET /index/_source/1
572
+ GET /my- index-000001 /_source/1
573
573
--------------------------------------------------
574
574
// TEST[continued]
575
575
@@ -580,9 +580,9 @@ bulk commands:
580
580
[source,console]
581
581
--------------------------------------------------
582
582
POST _bulk
583
- { "index" : { "_index" : "index", "_id" : "3" } }
583
+ { "index" : { "_index" : "my- index-000001 ", "_id" : "3" } }
584
584
{ "foo" : "baz" }
585
- { "index" : { "_index" : "index", "_id" : "4" } }
585
+ { "index" : { "_index" : "my- index-000001 ", "_id" : "4" } }
586
586
{ "foo" : "qux" }
587
587
--------------------------------------------------
588
588
@@ -609,18 +609,18 @@ return `_doc` as the type, even if the mapping has a custom type name like
609
609
610
610
[source,console]
611
611
--------------------------------------------------
612
- PUT index/my_type/1
612
+ PUT /my- index-000001 /my_type/1
613
613
{
614
614
"foo": "baz"
615
615
}
616
616
617
- GET index/_doc/1
617
+ GET /my- index-000001 /_doc/1
618
618
--------------------------------------------------
619
619
620
620
[source,console-result]
621
621
--------------------------------------------------
622
622
{
623
- "_index" : "index",
623
+ "_index" : "my- index-000001 ",
624
624
"_type" : "_doc",
625
625
"_id" : "1",
626
626
"_version" : 1,
0 commit comments