Interface IndexSchemaObjectNodeBuilder
-
- All Superinterfaces:
IndexSchemaBuildContext
- All Known Subinterfaces:
IndexSchemaObjectFieldNodeBuilder
,IndexSchemaRootNodeBuilder
public interface IndexSchemaObjectNodeBuilder extends IndexSchemaBuildContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>>
addField(String relativeFieldName, IndexFieldInclusion inclusion, IndexFieldType<F> indexFieldType)
Create a new field and add it to the current builder.IndexSchemaFieldTemplateOptionsStep<?>
addFieldTemplate(String templateName, IndexFieldInclusion inclusion, IndexFieldType<?> indexFieldType, String prefix)
Create a new field template and add it to the current builder.IndexSchemaObjectFieldNodeBuilder
addObjectField(String relativeFieldName, IndexFieldInclusion inclusion, ObjectStructure structure)
Create a new object field and add it to the current builder.IndexSchemaFieldTemplateOptionsStep<?>
addObjectFieldTemplate(String templateName, ObjectStructure structure, String prefix, IndexFieldInclusion inclusion)
Create a new object field template and add it to the current builder.-
Methods inherited from interface org.hibernate.search.engine.backend.document.model.dsl.spi.IndexSchemaBuildContext
eventContext
-
-
-
-
Method Detail
-
addField
<F> IndexSchemaFieldOptionsStep<?,IndexFieldReference<F>> addField(String relativeFieldName, IndexFieldInclusion inclusion, IndexFieldType<F> indexFieldType)
Create a new field and add it to the current builder.- Type Parameters:
F
- The type of values for the new field- Parameters:
relativeFieldName
- The relative name of the new fieldinclusion
- Whether fields matching this template should be included, provided their parent is included.indexFieldType
- The type of the new field- Returns:
- A DSL step where the field can be defined in more details.
-
addObjectField
IndexSchemaObjectFieldNodeBuilder addObjectField(String relativeFieldName, IndexFieldInclusion inclusion, ObjectStructure structure)
Create a new object field and add it to the current builder.- Parameters:
relativeFieldName
- The relative name of the new object fieldinclusion
- Whether fields matching this template should be included, provided their parent is included.structure
- The structure of the new object field- Returns:
- A builder for the new object field
-
addFieldTemplate
IndexSchemaFieldTemplateOptionsStep<?> addFieldTemplate(String templateName, IndexFieldInclusion inclusion, IndexFieldType<?> indexFieldType, String prefix)
Create a new field template and add it to the current builder.- Parameters:
templateName
- The name of the new templateinclusion
- Whether fields matching this template should be included, provided their parent is included.indexFieldType
- The type of the new field templateprefix
- A prefix to prepend to theglob pattern
and to field paths passed toDocumentElement.addValue(String, Object)
.- Returns:
- A DSL step where the field template can be defined in more details.
-
addObjectFieldTemplate
IndexSchemaFieldTemplateOptionsStep<?> addObjectFieldTemplate(String templateName, ObjectStructure structure, String prefix, IndexFieldInclusion inclusion)
Create a new object field template and add it to the current builder.- Parameters:
templateName
- The name of the new templatestructure
- The structure of the new object field templateprefix
- A prefix to prepend to theglob pattern
and to field paths passed toDocumentElement.addObject(String)
.inclusion
- Whether fields matching this template should be included, provided their parent is included.- Returns:
- A DSL step where the field template can be defined in more details.
-
-