There are some kind of multiple unique elastic search index?

Hi All,

I am new in Elastic Search and

I want to use different fields like unique id.

For example:

I have a data elastic search document as follows :

</>@Document(indexName = "outlet")
public class MyIndex implements IESMapper{

@Id
private String name;
private Long Id;
private Type type;
private String address;
private String geoLocation;
private String city;

// getter and setter methods

}</>

Is it possible Id, address, and geoLocation be unique indexes in the Elastic Search database?

I hope be clear,

Thanks a lot for some help

Silvia

The only field that is unique within an index is the id of the document. You can create a custom id based on several other fields, which would be unique, but there is no way to force any other indexed fields to be unique.

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