Most configurations in this section specify how the metadata fields of an Elasticsearch document are mapped to the incoming document.
If the incoming document contains the field with the configured name, for example, id
in the following example, it should be used as _id
in the Elasticsearch document. Similarly, configurations are applied to other metadata fields, for example, es.mapping.id=id
.
Specifies the document field name that maps to _parent
. Constants can be specified as <CONSTANT>
, for example, es.mapping.parent=item.id
or es.mapping.parent=<1>
.
Specifies the document field name that maps to _version
. Constants can be specified as <CONSTANT>
, for example, es.mapping.version=version
or es.mapping.version=<1>
.
This defaults to none
. If es.mapping.version
is unspecified; otherwise, it is external
.
This specifies the value of one of the version types, such as internal
, external
, external_gt
, external_gte
, or force
.
Specifies the document field name that maps to _routing
. Constants can be specified as <CONSTANT>
.
Specifies the document field name that maps to _ttl
. Constants can be specified as <CONSTANT>
.
Specifies the document field name that maps to _timestamp
. Constants can be specified as <CONSTANT>
.
Specifies if the Date
object should be returned, or if the native string
or long
type should be returned.