I'm trying to prevent duplicate entries into elasticsearch, but based on one of the parameters in the data. For example, if I have an object like below, I'd like to prevent another entry that has the same array of event_ids. Any ideas how to do this?
I'm coding this using the elasticsearch javascript API if it makes any difference.
{ start_date: '2015-11-19T08:46:14-05:00',
end_date: '2015-11-19T08:46:38-05:00',
length_seconds: 24,
number_events: 5,
event_ids: [ 5589253, 5589254, 5589255, 5589256, 5510380 ] },