Skip to content

Commit e7fe325

Browse files
[DOCS] Change index name from index to my-index-000001 (#62678)
Co-authored-by: James Rodewig <[email protected]>
1 parent 816d098 commit e7fe325

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/reference/mapping/removal_of_types.asciidoc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ See some examples of interactions with Elasticsearch with this option set to `fa
456456

457457
[source,console]
458458
--------------------------------------------------
459-
PUT index?include_type_name=false
459+
PUT /my-index-000001?include_type_name=false
460460
{
461461
"mappings": {
462462
"properties": { <1>
@@ -472,7 +472,7 @@ PUT index?include_type_name=false
472472

473473
[source,console]
474474
--------------------------------------------------
475-
PUT index/_mappings?include_type_name=false
475+
PUT /my-index-000001/_mappings?include_type_name=false
476476
{
477477
"properties": { <1>
478478
"bar": {
@@ -487,7 +487,7 @@ PUT index/_mappings?include_type_name=false
487487

488488
[source,console]
489489
--------------------------------------------------
490-
GET index/_mappings?include_type_name=false
490+
GET /my-index-000001/_mappings?include_type_name=false
491491
--------------------------------------------------
492492
// TEST[continued]
493493

@@ -496,7 +496,7 @@ The above call returns
496496
[source,console-result]
497497
--------------------------------------------------
498498
{
499-
"index": {
499+
"my-index-000001": {
500500
"mappings": {
501501
"properties": { <1>
502502
"foo": {
@@ -521,7 +521,7 @@ generation of the `_id` and `{index}/_doc/{id}` with explicit ids.
521521

522522
[source,console]
523523
--------------------------------------------------
524-
PUT index/_doc/1
524+
PUT /my-index-000001/_doc/1
525525
{
526526
"foo": "baz"
527527
}
@@ -530,7 +530,7 @@ PUT index/_doc/1
530530
[source,console-result]
531531
--------------------------------------------------
532532
{
533-
"_index": "index",
533+
"_index": "my-index-000001",
534534
"_id": "1",
535535
"_type": "_doc",
536536
"_version": 1,
@@ -549,7 +549,7 @@ Similarly, the `get` and `delete` APIs use the path `{index}/_doc/{id}`:
549549

550550
[source,console]
551551
--------------------------------------------------
552-
GET index/_doc/1
552+
GET /my-index-000001/_doc/1
553553
--------------------------------------------------
554554
// TEST[continued]
555555

@@ -562,14 +562,14 @@ in 7.0 the endpoint will immediately follow the index name:
562562

563563
[source,console]
564564
--------------------------------------------------
565-
POST index/_update/1
565+
POST /my-index-000001/_update/1
566566
{
567567
"doc" : {
568568
"foo" : "qux"
569569
}
570570
}
571571
572-
GET /index/_source/1
572+
GET /my-index-000001/_source/1
573573
--------------------------------------------------
574574
// TEST[continued]
575575

@@ -580,9 +580,9 @@ bulk commands:
580580
[source,console]
581581
--------------------------------------------------
582582
POST _bulk
583-
{ "index" : { "_index" : "index", "_id" : "3" } }
583+
{ "index" : { "_index" : "my-index-000001", "_id" : "3" } }
584584
{ "foo" : "baz" }
585-
{ "index" : { "_index" : "index", "_id" : "4" } }
585+
{ "index" : { "_index" : "my-index-000001", "_id" : "4" } }
586586
{ "foo" : "qux" }
587587
--------------------------------------------------
588588

@@ -609,18 +609,18 @@ return `_doc` as the type, even if the mapping has a custom type name like
609609

610610
[source,console]
611611
--------------------------------------------------
612-
PUT index/my_type/1
612+
PUT /my-index-000001/my_type/1
613613
{
614614
"foo": "baz"
615615
}
616616
617-
GET index/_doc/1
617+
GET /my-index-000001/_doc/1
618618
--------------------------------------------------
619619

620620
[source,console-result]
621621
--------------------------------------------------
622622
{
623-
"_index" : "index",
623+
"_index" : "my-index-000001",
624624
"_type" : "_doc",
625625
"_id" : "1",
626626
"_version" : 1,

0 commit comments

Comments
 (0)