1 Star 0 Fork 0

木易/elasticsearch-definitive-guide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
33_Metadata_ID.asciidoc 890 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zachary Tong 提交于 2016-01-22 14:55 . Can no longer extract _id via a path

Metadata: Document Identity

There are four metadata fields associated with document identity:

_id

The string ID of the document

_type

The type name of the document

_index

The index where the document lives

_uid

The _type and _id concatenated together as type#id

By default, the _uid field is stored (can be retrieved) and indexed (searchable). The _type field is indexed but not stored, and the _id and _index fields are neither indexed nor stored, meaning they don’t really exist.

In spite of this, you can query the _id field as though it were a real field. Elasticsearch uses the _uid field to derive the _id. Although you can change the index and store settings for these fields, you almost never need to do so.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangguilong/elasticsearch-definitive-guide.git
git@gitee.com:yangguilong/elasticsearch-definitive-guide.git
yangguilong
elasticsearch-definitive-guide
elasticsearch-definitive-guide
master

搜索帮助