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.BuilderContext
ToXContent.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.
|
simpleName
public static final String CONTENT_TYPE
public static final String NESTED_CONTENT_TYPE
protected ObjectMapper clone()
public ObjectMapper mappingUpdate(Mapper mapper)
public String name()
Mapper
public boolean isEnabled()
public ContentPath.Type pathType()
public ObjectMapper includeInAll(Boolean includeInAll)
AllFieldMapper.IncludeInAll
includeInAll
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.IncludeInAll
public ObjectMapper includeInAllIfNotSet(Boolean includeInAll)
AllFieldMapper.IncludeInAll
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
.includeInAllIfNotSet
in interface AllFieldMapper.IncludeInAll
public ObjectMapper unsetIncludeInAll()
AllFieldMapper.IncludeInAll
includeInAll
was already set on this mapper then return a copy
of this mapper that has includeInAll
not set.unsetIncludeInAll
in interface AllFieldMapper.IncludeInAll
public 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)
Mapper
mergeWith
into this.
Both this
and mergeWith
will be left unmodified.protected void doMerge(ObjectMapper mergeWith, boolean updateAllTypes)
public ObjectMapper updateFieldType(Map<String,MappedFieldType> fullNameToFieldType)
Mapper
updateFieldType
in class Mapper
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void toXContent(XContentBuilder builder, ToXContent.Params params, ToXContent custom) throws IOException
IOException
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2017. All rights reserved.