I have an AWS Elasticsearch instance with only one node. After inserting some records and getting CONFIRMATION back from the AWS-ES, the documents get lost. I know that there is a delay because of shards refresh, but this is not the case because we check two or three days after inserting the record. In case it makes a difference, I'm using Jest as the HTTP client.
After inserting the record, I get a response like {"_index":"XXXXXXXXX","_type":"document","_id":"354d7537-3062-4d0c-ba31-26a7ba686919","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"created":true}
When I try to search again using the _id, it is not there. {"_index":"XXXXXXXXXX","_type":"document","_id":"354d7537-3062-4d0c-ba31-26a7ba686919","found":false}