public class RoutingFieldMapper extends AbstractFieldMapper<String > implements InternalMapper , RootMapper
| Modifier and Type | Class and Description |
|---|---|
static class |
RoutingFieldMapper
|
static class |
RoutingFieldMapper
|
static class |
RoutingFieldMapper
|
AbstractFieldMapper.CopyTo , AbstractFieldMapper.MultiFields Mapper.BuilderContext ToXContent.DelegatingMapParams , ToXContent.MapParams , ToXContent.Params FieldMapper.Loading , FieldMapper.Names | Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE
|
static String |
NAME
|
boost, copyTo, customFieldDataSettings, docValues, docValuesFormat, fieldDataType, fieldType, indexAnalyzer, multiFields, names, normsLoading, postingsFormat, searchAnalyzer, similarityEMPTY_ARRAYEMPTY_PARAMSDOC_VALUES_FORMAT| Modifier | Constructor and Description |
|---|---|
|
RoutingFieldMapper()
|
protected |
RoutingFieldMapper(org
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
contentType()
|
FieldDataType |
defaultFieldDataType()
|
org |
defaultFieldType()
|
boolean |
hasDocValues()
|
boolean |
includeInObject()
Should the mapper be included in the root
ObjectMapper.
|
void |
markAsRequired()
|
void |
merge(Mapper
|
void |
parse(ParseContext
|
protected void |
parseCreateField(ParseContext
Parse the field value and populate
fields.
|
String |
path()
|
void |
postParse(ParseContext
Called after
Mapper on the
RootObjectMapper.
|
void |
preParse(ParseContext
Called before
Mapper on the
RootObjectMapper.
|
boolean |
required()
|
XContentBuilder |
toXContent(XContentBuilder
|
String |
value(org
|
String |
value(Object
Returns the actual value of the field.
|
boost, close, copyTo, customBoost, defaultDocValuesFormat, defaultPostingFormat, docValuesFormatProvider, doXContentBody, fieldDataTermsFilter, fieldDataType, fieldType, fuzzyQuery, indexAnalyzer, indexedValueForSearch, indexOptionToString, indexTokenizeOptionToString, isGenerated, isNumeric, isSortable, name, names, normsLoading, nullValueFilter, postingsFormatProvider, prefixFilter, prefixQuery, queryStringTermQuery, rangeFilter, rangeQuery, regexpFilter, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, similarity, stats, supportsNullValue, termFilter, termQuery, termsFilter, termVectorOptionsToString, traverse, traverse, useTermQueryWithQueryString, valueForSearchpublic static final StringNAME
public static final StringCONTENT_TYPE
public RoutingFieldMapper()
protected RoutingFieldMapper(org.apache .lucene .document .FieldType fieldType, boolean required, String path, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings)
public org.apache .lucene .document .FieldType defaultFieldType()
public FieldDataTypedefaultFieldDataType()
public boolean hasDocValues()
public void markAsRequired()
public boolean required()
public Stringpath()
public Stringvalue(org .apache .lucene .document .Document document)
public Stringvalue(Object value)
FieldMapper
public void preParse(ParseContextcontext) throws IOException
RootMapper
Mapper.parse(ParseContext) on the
RootObjectMapper.
preParse in interface
RootMapper
IOException
public void postParse(ParseContextcontext) throws IOException
RootMapper
Mapper.parse(ParseContext) on the
RootObjectMapper.
postParse in interface
RootMapper
IOException
public void parse(ParseContextcontext) throws IOException
parse in interface
Mapper
parse in class
AbstractFieldMapper<String>
IOException
public boolean includeInObject()
RootMapper
ObjectMapper. If this method returns true, then
Mapper.parse(ParseContext) will be called if the context has a property that matches the name of this
RootMapper. Otherwise
Mapper.parse(ParseContext) will not be called.
protected void parseCreateField(ParseContextcontext, List <org .apache .lucene .document .Field > fields) throws IOException
AbstractFieldMapper
fields.
parseCreateField in class
AbstractFieldMapper<String>
IOException
protected StringcontentType()
public XContentBuildertoXContent(XContentBuilder builder, ToXContent .Params params) throws IOException
toXContent in interface
ToXContent
toXContent in class
AbstractFieldMapper<String>
IOException
public void merge(MappermergeWith, MergeContext mergeContext) throws MergeMappingException
merge in interface
Mapper
merge in class
AbstractFieldMapper<String>
MergeMappingException