How to check if a document was successfully insert into elasticsearch

thanks for your fast reply. I'm trying to insert documents with specific id (for example the id is name+age).