Hi, I run this code:
POST topf/_delete_by_query?conflicts=proceed&max_docs=500000
{
"query": {
"range": {
"time": {
"gte": "2020-09-18T03:00:00",
"lte": "2020-09-18T04:00:00"
}
}
}
}
I get this response:
{
"took": 197,
"timed_out": false,
"total": 500000,
"deleted": 0,
"batches": 1,
"version_conflicts": 0,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"requests_per_second": -1,
"throttled_until_millis": 0,
"failures": [
{
"index": "topf",
"type": "_doc",
"id": "5P9Jn3QB8h4zPTyXs00T",
"cause": {
"type": "illegal_argument_exception",
"reason": "number of documents in the index cannot exceed 2147483519"
},
"status": 400
},
.
.
.
]
}
my index setting:
docs num 2097483519
primary shard: 1
replica shard: 0
How can i save my index and delete old docs?
i dont want delete whole of my index.
any solutions?