I am trying to get a list of the ids of all document in my index. The index has about 50k documents in it, however I cannot use the from parameter to see any ids once "from" + "size" > 10,000. I know there's the scroll api, but when I tried to use it, I get the error message: from is not allowed in scroll context. How can I modify my query to get the id of records past record 10,000 in my index? Thanks!
GET vs-imr-cases/_search?scroll=1m
{
"query": {
"match_all": {}
},
"sort": [
{
"case_number.keyword": {
"order": "desc"
}
}
],
"_source": "_id",
"size": 10,
"from": 10000
}