1. _index
文档所属的索引。https://www.elastic.co/guide/en/elasticsearch/reference/6.3/mapping-source-field.html
2. _id
每个文档都有一个独一的id标识它,id可用于特定的查询 (term
, terms
, match
, query_string
, simple_query_string
).
PUT my_index/_doc/1
{
"text": "Document with ID 1"
}
PUT my_index/_doc/2
{
"text": "Document with ID 2"
}
GET my_index/_search
{
"query": {
"terms": {
"_id": [ "1","2" ]
}
}
}
3. _source
存储了原始的文档。若要关闭,须将enabled属性设为false。但是,如果关闭_source,那么下面的功能将不再支持
(1