Interface IndexRootBuilder
- All Superinterfaces:
IndexCompositeNodeBuilder, IndexSchemaBuildContext
-
Method Summary
Modifier and TypeMethodDescriptioncreateTypeFactory(IndexFieldTypeDefaultsProvider defaultsProvider) voidInform 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> voididDslConverter(Class<I> valueType, ToDocumentValueConverter<I, String> converter) Defines how identifier values passed to the search DSL should be converted to document identifiers when usingValueModel.MAPPING.voididParser(ToDocumentValueConverter<String, String> converter) Defines how identifier values passed to the search DSL should be converted to document identifiers when usingValueModel.STRING.<I> voididProjectionConverter(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 IndexCompositeNodeBuilder
addField, addFieldTemplate, addNamedPredicate, addNamedPredicate, addObjectField, addObjectFieldTemplateMethods inherited from interface 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 usingValueModel.MAPPING.- 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).
-
idParser
Defines how identifier values passed to the search DSL should be converted to document identifiers when usingValueModel.STRING.- Parameters:
converter- A converter from the string 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.
-