public class ObjectMapper extends Mapper implements AllFieldMapper.IncludeInAll, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectMapper.Builder<T extends ObjectMapper.Builder,Y extends ObjectMapper> |
static class |
ObjectMapper.Defaults |
static class |
ObjectMapper.Dynamic |
static class |
ObjectMapper.Nested |
static class |
ObjectMapper.TypeParser |
Mapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
NESTED_CONTENT_TYPE |
EMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
protected ObjectMapper |
clone() |
protected void |
doMerge(ObjectMapper mergeWith,
boolean updateAllTypes) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
ObjectMapper.Dynamic |
dynamic() |
String |
fullPath() |
Mapper |
getMapper(String field) |
ObjectMapper |
includeInAll(Boolean includeInAll)
If
includeInAll is not null then return a copy of this mapper
that will include values in the _all field according to includeInAll. |
ObjectMapper |
includeInAllIfNotSet(Boolean includeInAll)
If
includeInAll is not null and not set on this mapper yet, then
return a copy of this mapper that will include values in the _all field
according to includeInAll. |
boolean |
isEnabled() |
Iterator<Mapper> |
iterator() |
ObjectMapper |
mappingUpdate(Mapper mapper)
Build a mapping update with the provided sub mapping update.
|
ObjectMapper |
merge(Mapper mergeWith,
boolean updateAllTypes)
Return the merge of
mergeWith into this. |
String |
name()
Returns the canonical name which uniquely identifies the mapper against other mappers in a type.
|
ObjectMapper.Nested |
nested() |
org.apache.lucene.search.Query |
nestedTypeFilter() |
String |
nestedTypePathAsString() |
ContentPath.Type |
pathType() |
protected void |
putMapper(Mapper mapper) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
toXContent(XContentBuilder builder,
ToXContent.Params params,
ToXContent custom) |
ObjectMapper |
unsetIncludeInAll()
If
includeInAll was already set on this mapper then return a copy
of this mapper that has includeInAll not set. |
ObjectMapper |
updateFieldType(Map<String,MappedFieldType> fullNameToFieldType)
Update the field type of this mapper.
|
simpleNamepublic static final String CONTENT_TYPE
public static final String NESTED_CONTENT_TYPE
protected ObjectMapper clone()
public ObjectMapper mappingUpdate(Mapper mapper)
public String name()
Mapperpublic boolean isEnabled()
public ContentPath.Type pathType()
public ObjectMapper includeInAll(Boolean includeInAll)
AllFieldMapper.IncludeInAllincludeInAll is not null then return a copy of this mapper
that will include values in the _all field according to includeInAll.includeInAll in interface AllFieldMapper.IncludeInAllpublic ObjectMapper includeInAllIfNotSet(Boolean includeInAll)
AllFieldMapper.IncludeInAllincludeInAll is not null and not set on this mapper yet, then
return a copy of this mapper that will include values in the _all field
according to includeInAll.includeInAllIfNotSet in interface AllFieldMapper.IncludeInAllpublic ObjectMapper unsetIncludeInAll()
AllFieldMapper.IncludeInAllincludeInAll was already set on this mapper then return a copy
of this mapper that has includeInAll not set.unsetIncludeInAll in interface AllFieldMapper.IncludeInAllpublic ObjectMapper.Nested nested()
public org.apache.lucene.search.Query nestedTypeFilter()
protected void putMapper(Mapper mapper)
public String fullPath()
public String nestedTypePathAsString()
public final ObjectMapper.Dynamic dynamic()
public ObjectMapper merge(Mapper mergeWith, boolean updateAllTypes)
MappermergeWith into this.
Both this and mergeWith will be left unmodified.protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes)
public ObjectMapper updateFieldType(Map<String,MappedFieldType> fullNameToFieldType)
MapperupdateFieldType in class Mapperpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom) throws IOException
IOExceptionprotected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.