public class UidFieldMapper extends AbstractFieldMapper<Uid> implements InternalMapper, RootMapper
| Modifier and Type | Class and Description |
|---|---|
static class |
UidFieldMapper.Builder |
static class |
UidFieldMapper.Defaults |
static class |
UidFieldMapper.TypeParser |
AbstractFieldMapper.CopyTo, AbstractFieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsFieldMapper.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 |
|---|---|
|
UidFieldMapper() |
protected |
UidFieldMapper(String name) |
protected |
UidFieldMapper(String name,
String indexName,
Boolean docValues,
PostingsFormatProvider postingsFormat,
DocValuesFormatProvider docValuesFormat,
Settings fieldDataSettings,
Settings indexSettings) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
contentType() |
FieldDataType |
defaultFieldDataType() |
org.apache.lucene.document.FieldType |
defaultFieldType() |
protected String |
defaultPostingFormat() |
boolean |
includeInObject()
Should the mapper be included in the root
ObjectMapper. |
void |
merge(Mapper mergeWith,
MergeContext mergeContext) |
void |
parse(ParseContext context) |
protected void |
parseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields. |
void |
postParse(ParseContext context)
Called after
Mapper.parse(ParseContext) on the RootObjectMapper. |
void |
preParse(ParseContext context)
Called before
Mapper.parse(ParseContext) on the RootObjectMapper. |
org.apache.lucene.index.Term |
term(String uid) |
org.apache.lucene.index.Term |
term(String type,
String id) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
Uid |
value(Object value)
Returns the actual value of the field.
|
boost, close, copyTo, customBoost, defaultDocValuesFormat, docValuesFormatProvider, doXContentBody, fieldDataTermsFilter, fieldDataType, fieldType, fuzzyQuery, hasDocValues, 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 String NAME
public static final String CONTENT_TYPE
public UidFieldMapper()
protected UidFieldMapper(String name)
protected UidFieldMapper(String name, String indexName, Boolean docValues, PostingsFormatProvider postingsFormat, DocValuesFormatProvider docValuesFormat, @Nullable Settings fieldDataSettings, Settings indexSettings)
public org.apache.lucene.document.FieldType defaultFieldType()
defaultFieldType in class AbstractFieldMapper<Uid>public FieldDataType defaultFieldDataType()
defaultFieldDataType in class AbstractFieldMapper<Uid>protected String defaultPostingFormat()
defaultPostingFormat in class AbstractFieldMapper<Uid>public void preParse(ParseContext context) throws IOException
RootMapperMapper.parse(ParseContext) on the RootObjectMapper.preParse in interface RootMapperIOExceptionpublic void postParse(ParseContext context) throws IOException
RootMapperMapper.parse(ParseContext) on the RootObjectMapper.postParse in interface RootMapperIOExceptionpublic void parse(ParseContext context) throws IOException
parse in interface Mapperparse in class AbstractFieldMapper<Uid>IOExceptionpublic boolean includeInObject()
RootMapperObjectMapper.
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.includeInObject in interface RootMapperprotected void parseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
AbstractFieldMapperfields.parseCreateField in class AbstractFieldMapper<Uid>IOExceptionpublic Uid value(Object value)
FieldMappervalue in interface FieldMapper<Uid>public org.apache.lucene.index.Term term(String uid)
protected String contentType()
contentType in class AbstractFieldMapper<Uid>public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContenttoXContent in class AbstractFieldMapper<Uid>IOExceptionpublic void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge in interface Mappermerge in class AbstractFieldMapper<Uid>MergeMappingExceptionCopyright © 2009–2016. All rights reserved.