@Override public ByteFieldMapper build(BuilderContext context) { setupFieldType(context); ByteFieldMapper fieldMapper = new ByteFieldMapper( name, fieldType, defaultFieldType, ignoreMalformed(context), coerce(context), context.indexSettings(), multiFieldsBuilder.build(this, context), copyTo); return (ByteFieldMapper) fieldMapper.includeInAll(includeInAll); }
@Override public ByteFieldMapper build(BuilderContext context) { fieldType.setOmitNorms(fieldType.omitNorms() && boost == 1.0f); ByteFieldMapper fieldMapper = new ByteFieldMapper( buildNames(context), precisionStep, boost, fieldType, nullValue, ignoreMalformed(context), postingsProvider, docValuesProvider, similarity, fieldDataSettings, context.indexSettings()); fieldMapper.includeInAll(includeInAll); return fieldMapper; }