Interface ImplicitFieldCollector
-
@Incubating public interface ImplicitFieldCollector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <F> voidaddImplicitField(String fieldName, IndexFieldType<F> indexFieldType)Create a new implicit field.IndexFieldTypeFactoryindexFieldTypeFactory()Returned factory can be used to easily create a field type foraddImplicitField(String, IndexFieldType).
-
-
-
Method Detail
-
indexFieldTypeFactory
IndexFieldTypeFactory indexFieldTypeFactory()
Returned factory can be used to easily create a field type foraddImplicitField(String, IndexFieldType).- Returns:
- A factory for types of index fields.
-
addImplicitField
<F> void addImplicitField(String fieldName, IndexFieldType<F> indexFieldType)
Create a new implicit field. It is expected that the field will be present in the created index. Mapping will not be modified.- Type Parameters:
F- The type of values for the field- Parameters:
fieldName- The relative name of the fieldindexFieldType- The type of the field
-
-