Interface DocumentReference
-
public interface DocumentReferenceA reference to an indexed document.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default StringgetId()Deprecated.Useid()instead.default StringgetTypeName()Deprecated.UsetypeName()instead.Stringid()StringtypeName()
-
-
-
Method Detail
-
typeName
String typeName()
- Returns:
- The name of the type of the referenced document. The type name is mapper-specific. For example, in the Hibernate ORM mapper, it will be the JPA entity name.
-
getTypeName
@Deprecated default String getTypeName()
Deprecated.UsetypeName()instead.- Returns:
- The name of the type of the referenced document. The type name is mapper-specific. For example, in the Hibernate ORM mapper, it will be the JPA entity name.
-
id
String id()
- Returns:
- The identifier of the referenced document. The identifier is returned as it was generated during document building, i.e. it does not take into account backend-specific transformations such as appending a tenant ID when using multi-tenancy.
-
getId
@Deprecated default String getId()
Deprecated.Useid()instead.- Returns:
- The identifier of the referenced document. The identifier is returned as it was generated during document building, i.e. it does not take into account backend-specific transformations such as appending a tenant ID when using multi-tenancy.
-
-