1. Meta-Fields(元字段)

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/5.3/mapping-fields.html

译文链接 : http://www.apache.wiki/pages/viewpage.action?pageId=9405203

贡献者 : 朱彦安ApacheCNApache中文网

每个文档都有与之关联的元数据,比如 **_index**,``**[_type](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-type-field.html "_type field") **和_id元字段。当创建 mapping type(映射类型)时,可以自定义一些这些元字段的行为。

1.1.1. Identity meta-fields(身份的元字段)

| _index | 文档所属的索引。 | | _uid | 复合字段包含了_type _id 。 | | _type | 文档的 mapping type(映射类型 ) 。 | | _id | 文档 ID。 |

1.1.2. Document source meta-fields(文档源的元字段)

_source

原始的 JSON 字符串表示文档的正文。

_size

_source 字段的大小(以字节为单位),由 mapper-size 插件提供。

1.1.3. Indexing meta-fields(索引的元字段)

_all

一个索引其他全部字段值的全能字段。

_field_names

文档中包含非空值的所有字段。

1.1.4. Routing meta-fields(路由的元字段)

_parent

用于创建两个映射类型之间的父子关系。

_routing

将文档路由到特定分片的自定义路由值。

1.1.5. Other meta-field(其他的元字段)

_meta

特定应用的元数据。

Copyright © Kilvn 2021. all right reserved,powered by Gitbook最后更新时间: 2021-06-08 20:22:42

results matching ""

    No results matching ""