http://localhost:9201/restored_index/_search
Response:
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1.0,
"hits": [
{
"_index": "restored_index",
"_type": "_doc",
"_id": "11JUPokBSZ0LgEWBxERF",
"_score": 1.0,
"_source": {
"foo": "bar"
}
}
]
}
}
http://localhost:9200/my-idx-new-09-2023/_search
Response:
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 10,
"relation": "eq"
},
"max_score": 1.0,
"hits": [
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "2VJVPokBSZ0LgEWBM0Qi",
"_score": 1.0,
"_source": {
"name": "42a8edogab",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "2lJVPokBSZ0LgEWBN0Q8",
"_score": 1.0,
"_source": {
"name": "w8fmegu0j4",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "21JVPokBSZ0LgEWBO0RE",
"_score": 1.0,
"_source": {
"name": "8flxaze4f6",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "3FJVPokBSZ0LgEWBP0RN",
"_score": 1.0,
"_source": {
"name": "9g59tbgc1p",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "3VJVPokBSZ0LgEWBQ0RR",
"_score": 1.0,
"_source": {
"name": "nbicektp48",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "3lJVPokBSZ0LgEWBR0RQ",
"_score": 1.0,
"_source": {
"name": "42ry40id4e",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "31JVPokBSZ0LgEWBS0Ry",
"_score": 1.0,
"_source": {
"name": "atcwvil0hl",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "4FJVPokBSZ0LgEWBT0Rw",
"_score": 1.0,
"_source": {
"name": "cphxxk15lr",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "4VJVPokBSZ0LgEWBU0R8",
"_score": 1.0,
"_source": {
"name": "79yp7zrzwx",
"age": 30,
"email": "johndoe@example.com"
}
},
{
"_index": "my-idx-new-09-2023",
"_type": "_doc",
"_id": "4lJVPokBSZ0LgEWBV0SK",
"_score": 1.0,
"_source": {
"name": "olxrr29cz1",
"age": 30,
"email": "johndoe@example.com"
}
}
]
}
}
http://localhost:9201/_reindex?wait_for_completion=true
{
"source": {
"remote": {
"host": "http://localhost:9200"
},
"index": "my-idx-new-09-2023"
},
"dest": {
"index": "restored_index"
}
}
Response: [It is saying updated because it is already been created but it cannot be seen in restored_index
why this is happening ?
{
"took": 45,
"timed_out": false,
"total": 10,
"updated": 10,
"created": 0,
"deleted": 0,
"batches": 1,
"version_conflicts": 0,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"requests_per_second": -1.0,
"throttled_until_millis": 0,
"failures": []
}