Elasticsearch how to prevent duplicate data?

(mahmoud samy ) #1

Hi all,

I need to prevent documents to be inserted into single index if it has the same data


            "user":"test user",

I need top prevent any documents has the same user and age into the same index

(David Pilato) #2

You should compute a fingerprint based on content and use this fingerprint as the document id.

(Christian Dahlqvist) #3

Have a look at these blog posts:

(system) closed #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.