public static class DateFieldMapper.Builder extends FieldMapper.Builder<DateFieldMapper.Builder,DateFieldMapper>
copyTo, defaultFieldType, docValuesSet, fieldType, includeInAll, indexOptionsSet, multiFieldsBuilder, omitNormsSet
builder, name
Constructor and Description |
---|
Builder(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
DateFieldMapper |
build(Mapper.BuilderContext context)
Returns a newly built mapper.
|
DateFieldMapper.Builder |
dateTimeFormatter(FormatDateTimeFormatter dateTimeFormatter) |
DateFieldMapper.DateFieldType |
fieldType() |
DateFieldMapper.Builder |
ignoreMalformed(boolean ignoreMalformed) |
protected Explicit<java.lang.Boolean> |
ignoreMalformed(Mapper.BuilderContext context) |
boolean |
isDateTimeFormatterSet()
Whether an explicit format for this date field has been set already.
|
void |
locale(java.util.Locale locale) |
protected void |
setupFieldType(Mapper.BuilderContext context) |
addMultiField, boost, buildFullName, copyTo, defaultDocValues, docValues, getDefaultIndexOption, includeInAll, index, indexAnalyzer, indexOptions, nullValue, omitNorms, searchAnalyzer, searchQuoteAnalyzer, similarity, store, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized
name
public DateFieldMapper.DateFieldType fieldType()
fieldType
in class FieldMapper.Builder<DateFieldMapper.Builder,DateFieldMapper>
public DateFieldMapper.Builder ignoreMalformed(boolean ignoreMalformed)
protected Explicit<java.lang.Boolean> ignoreMalformed(Mapper.BuilderContext context)
public boolean isDateTimeFormatterSet()
public DateFieldMapper.Builder dateTimeFormatter(FormatDateTimeFormatter dateTimeFormatter)
public void locale(java.util.Locale locale)
protected void setupFieldType(Mapper.BuilderContext context)
setupFieldType
in class FieldMapper.Builder<DateFieldMapper.Builder,DateFieldMapper>
public DateFieldMapper build(Mapper.BuilderContext context)
Mapper.Builder
build
in class Mapper.Builder<DateFieldMapper.Builder,DateFieldMapper>