org.elasticsearch.index.mapper.xcontent
Class UidFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.xcontent.AbstractFieldMapper<Uid>
org.elasticsearch.index.mapper.xcontent.UidFieldMapper
- All Implemented Interfaces:
- ToXContent, FieldMapper<Uid>, InternalMapper, UidFieldMapper, XContentMapper
public class UidFieldMapper
- extends AbstractFieldMapper<Uid>
- implements UidFieldMapper
Methods inherited from class org.elasticsearch.index.mapper.xcontent.AbstractFieldMapper |
analyzed, boost, doXContentBody, fieldDataType, fieldFilter, fieldQuery, index, indexAnalyzer, indexed, name, names, omitNorms, omitTermFreqAndPositions, parse, queryStringTermQuery, rangeFilter, rangeQuery, searchAnalyzer, store, stored, termVector, traverse, useFieldQueryWithQueryString, valueForSearch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.elasticsearch.index.mapper.FieldMapper |
analyzed, boost, fieldDataType, fieldFilter, fieldQuery, index, indexAnalyzer, indexed, names, omitNorms, omitTermFreqAndPositions, queryStringTermQuery, rangeFilter, rangeQuery, searchAnalyzer, store, stored, termVector, useFieldQueryWithQueryString, valueForSearch |
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
UidFieldMapper
protected UidFieldMapper()
UidFieldMapper
protected UidFieldMapper(java.lang.String name)
UidFieldMapper
protected UidFieldMapper(java.lang.String name,
java.lang.String indexName)
parseCreateField
protected org.apache.lucene.document.Field parseCreateField(ParseContext context)
throws java.io.IOException
- Specified by:
parseCreateField
in class AbstractFieldMapper<Uid>
- Throws:
java.io.IOException
value
public Uid value(org.apache.lucene.document.Fieldable field)
- Description copied from interface:
FieldMapper
- Returns the actual value of the field.
- Specified by:
value
in interface FieldMapper<Uid>
valueFromString
public Uid valueFromString(java.lang.String value)
- Specified by:
valueFromString
in interface FieldMapper<Uid>
valueAsString
public java.lang.String valueAsString(org.apache.lucene.document.Fieldable field)
- Description copied from interface:
FieldMapper
- Returns the actual value of the field as string.
- Specified by:
valueAsString
in interface FieldMapper<Uid>
indexedValue
public java.lang.String indexedValue(java.lang.String value)
- Description copied from interface:
FieldMapper
- Returns the indexed value.
- Specified by:
indexedValue
in interface FieldMapper<Uid>
- Overrides:
indexedValue
in class AbstractFieldMapper<Uid>
term
public org.apache.lucene.index.Term term(java.lang.String type,
java.lang.String id)
- Specified by:
term
in interface UidFieldMapper
term
public org.apache.lucene.index.Term term(java.lang.String uid)
- Specified by:
term
in interface UidFieldMapper
contentType
protected java.lang.String contentType()
- Specified by:
contentType
in class AbstractFieldMapper<Uid>
toXContent
public void toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Overrides:
toXContent
in class AbstractFieldMapper<Uid>
- Throws:
java.io.IOException
merge
public void merge(XContentMapper mergeWith,
MergeContext mergeContext)
throws MergeMappingException
- Specified by:
merge
in interface XContentMapper
- Overrides:
merge
in class AbstractFieldMapper<Uid>
- Throws:
MergeMappingException