It is possible to create unique constraint in Spring Data Elasticsearch which is equal to @Column(unique = true) in RDBMS?
Unfortunately, @Field annotation does not have Unique param.
Perhaps I could use @Id but what if there are other fields like username, email, ...?