Book Image

Elasticsearch for Hadoop

By : Vishal Shukla
Book Image

Elasticsearch for Hadoop

By: Vishal Shukla

Overview of this book

Table of Contents (15 chapters)
Elasticsearch for Hadoop
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Mapping configurations


Most configurations in this section specify how the metadata fields of an Elasticsearch document are mapped to the incoming document.

es.mapping.id

This defaults to none.

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.

es.mapping.parent

This defaults to none.

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>.

es.mapping.version

This defaults to none.

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>.

es.mapping.version.type

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.

es.mapping.routing

This defaults to none.

Specifies the document field name that maps to _routing. Constants can be specified as <CONSTANT>.

es.mapping.ttl

This defaults to none.

Specifies the document field name that maps to _ttl. Constants can be specified as <CONSTANT>.

es.mapping.timestamp

This defaults to none.

Specifies the document field name that maps to _timestamp. Constants can be specified as <CONSTANT>.

es.mapping.date.rich

This defaults to true.

Specifies if the Date object should be returned, or if the native string or long type should be returned.

es.mapping.include

This defaults to none; hence all the fields should be included. Comma-separated field names are specified, only these fields will be indexed or read.

es.mapping.exclude

This defaults to none; hence all the fields should be included. Comma-separated field names are specified, these fields will be not be indexed or read.