Maintain a unique field while indexing - equivalent to a UNIQUE INDEX in a relational database

Making the document's id the email would do it.