Interface TypeNameMapping
-
- All Known Implementing Classes:
DiscriminatorTypeNameMapping,IndexNameTypeNameMapping
public interface TypeNameMappingRegroups behavior related to how type names are assigned to index documents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<DocumentMetadataContributor>getDocumentMetadataContributor(String mappedTypeName)Optional<ImplicitFieldContributor>getImplicitFieldContributor()Optional<IndexSchemaRootContributor>getIndexSchemaRootContributor()ProjectionExtractionHelper<String>getTypeNameExtractionHelper()voidregister(IndexNames indexNames, String mappedTypeName)Register a new index => type mapping.
-
-
-
Method Detail
-
getIndexSchemaRootContributor
Optional<IndexSchemaRootContributor> getIndexSchemaRootContributor()
- Returns:
- A schema contributor for the required additional properties (type name, ...), or an empty optional.
-
getDocumentMetadataContributor
Optional<DocumentMetadataContributor> getDocumentMetadataContributor(String mappedTypeName)
- Parameters:
mappedTypeName- The name of the type mapped to the index.- Returns:
- A document metadata contributor for the required additional properties (type name, ...), or an empty optional.
-
getImplicitFieldContributor
Optional<ImplicitFieldContributor> getImplicitFieldContributor()
- Returns:
- A field contributor for the additional implicit properties (_entity_type, ...), or an empty optional.
-
register
void register(IndexNames indexNames, String mappedTypeName)
Register a new index => type mapping.- Parameters:
indexNames- The names of the index.mappedTypeName- The name of the type mapped to the index.
-
getTypeNameExtractionHelper
ProjectionExtractionHelper<String> getTypeNameExtractionHelper()
- Returns:
- A helper for projections that need to extract the mapped type name from search hits.
-
-