Uniqueness constraint

Elasticsearch doesn't enforce any uniqueness constraints unless the field
is used as ID. If your documents already have IDs that you cannot be
changed, you could index email addresses as child records. Just make sure
that you are using op_type=create to ensure that new records doesn't
overwrite an existing record.

On Thursday, August 2, 2012 5:15:41 PM UTC-4, Greg wrote:

Hi all

Is it possible to enforce a uniqueness constraint for a particular field
in Elasticsearch? I would like to prevent multiple documents from being
indexed with the same email address.

Thanks
Greg