Interface IndexRootBuilder
- All Superinterfaces:
IndexCompositeNodeBuilder
,IndexSchemaBuildContext
-
Method Summary
Modifier and TypeMethodDescriptioncreateTypeFactory
(IndexFieldTypeDefaultsProvider defaultsProvider) void
Inform the model collector that documents will always be provided along with an explicit routing key, to be used to route the document to a specific shard.<I> void
idDslConverter
(Class<I> valueType, ToDocumentValueConverter<I, String> converter) Defines how identifier values passed to the search DSL should be converted to document identifiers.<I> void
idProjectionConverter
(Class<I> valueType, FromDocumentValueConverter<String, I> converter) Define how values returned when projecting on identifiers should be converted before being returned to the user.Methods inherited from interface org.hibernate.search.engine.backend.document.model.dsl.spi.IndexCompositeNodeBuilder
addField, addFieldTemplate, addNamedPredicate, addObjectField, addObjectFieldTemplate
Methods inherited from interface org.hibernate.search.engine.backend.document.model.dsl.spi.IndexSchemaBuildContext
eventContext
-
Method Details
-
createTypeFactory
-
explicitRouting
void explicitRouting()Inform the model collector that documents will always be provided along with an explicit routing key, to be used to route the document to a specific shard. -
idDslConverter
Defines how identifier values passed to the search DSL should be converted to document identifiers.When not set, users are expected to pass document identifiers directly.
- Type Parameters:
I
- The type of identifier values that can be passed to the DSL.- Parameters:
valueType
- The type of values that can be passed to the DSL.converter
- A converter from the given value type to the document identifier (a string).
-
idProjectionConverter
Define how values returned when projecting on identifiers should be converted before being returned to the user.When not set, users will be returned the document identifier directly.
- Type Parameters:
I
- The type of values that will be returned when projecting on identifiers.- Parameters:
valueType
- The type of values that will be returned when projecting on fields of this type.converter
- A converter from the document identifier (a string) to the given value type.
-