The uppermost level of a mapping is known as the root object. It may contain the following:
A properties section, which lists the mapping for each field that a document may contain
Various metadata fields, all of which start with an underscore, such
as _type
, _id
, and _source
Settings, which control how the dynamic detection of new fields
is handled, such as analyzer
, dynamic_date_formats
, and
dynamic_templates
Other settings, which can be applied both to the root object and to fields
of type object
, such as enabled
, dynamic
, and include_in_all
We have already discussed the three most important settings for document fields or properties in [core-fields] and [complex-core-fields]:
type
The datatype that the field contains, such as string
or date
index
Whether a field should be searchable as full text (analyzed
), searchable as an exact value (not_analyzed
), or not searchable at all (no
)
analyzer
Which analyzer
to use for a full-text field, both at index time and at search time
We will discuss other field types such as ip
, geo_point
, and geo_shape
in
the appropriate sections later in the book.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。