_id field

Each document indexed is associated with a _type (see the section called “Mapping Typesedit”) and an_id. The _id field is not indexed as its value can be derived automatically from the _uid field.

The value of the _id field is accessible in certain queries (termtermsmatchquery_string,simple_query_string), but not in aggregations, scripts or when sorting, where the _uid field should be used instead:

# Example documents
PUT my_index/my_type/1
{
"text": "Document with ID 1"
} PUT my_index/my_type/2&refresh=true
{
"text": "Document with ID 2"
} GET my_index/_search
{
"query": {
"terms": {
"_id": [ "1", "2" ]
}
}
}

Querying on the _id field (also see the ids query)

最新文章

  1. 深入理解MySql子查询IN的执行和优化
  2. Atitit smb网络邻居原理与实现查询列表
  3. IT菜鸟的生存指南(二)新手村任务
  4. 【BZOJ】 1007: [HNOI2008]水平可见直线(凸壳)
  5. C-指针和数组的区别
  6. 解决VS报表.rdl 显示乱码“小方块”问题
  7. jQuery模拟瀑布流布局
  8. Ubuntu 14.04 静态IP设置
  9. angular实现跨域
  10. Java中的系统时间
  11. C#获取指定的文件是否是内部特殊版本的代码
  12. js中this的绑定规则及优先级
  13. iframe标签
  14. zabbix入门之使用QQ邮箱接受报警信息
  15. Java 8- Java 分支结构 - if…else/switch
  16. oracle 一致读原理
  17. 【Leetcode】338. Bit位计数
  18. MySQL入门详解(二)---mysql事务、锁、以及优化
  19. 整理低版本ie兼容问题的解决方案
  20. Swift 基本数据类型与运算符表达式

热门文章

  1. Vue 响应式属性
  2. Hadoop实战: Linux报 tmp 磁盘存储不足
  3. Leetcode Array 11 Container With Most Water
  4. HTML元素定位
  5. hashCode与equals的作用与区别及应当注意的细节
  6. session 购物车
  7. 模拟struts2
  8. CentOS系统环境下安装MongoDB
  9. Eclipse中执行Tomcat源代码
  10. IOS数组按中文关键字以字母序排序