I will need to add documents to an elasticsearch index i already have. I want to validate if the document i an adding already exists in this index, and if thats the case, dont add it
Is elasticsearch controlling that scenario returning an exception? If not, how can i validate this?
I have tried using the GET API, but you need to send the ID as parameter. i want to search inside the whole index, not using a specific ID
My problem is that the id is just a number i am generating at insertion time (1,2,3...)
What i would like to do i search in an index if a document (without using the id) exists in that index, as i dont know what is the id for the existing document
Imagine i have {"name": "javi"} and it has been indexed with id 4847 on the index "test"
How can i check if {"name": "javi"} exists in "test"?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.