write down,forget
adidas eqt support ultra primeknit vintage white coming soon adidas eqt support ultra boost primeknit adidas eqt support ultra pk vintage white available now adidas eqt support ultra primeknit vintage white sz adidas eqt support ultra boost primeknit adidas eqt adv support primeknit adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red adidas eqt support ultra whiteturbo adidas eqt support ultra boost off white more images adidas eqt support ultra boost white tactile green adidas eqt support ultra boost beige adidas eqt support ultra boost beige adidas eqt support refined camo drop adidas eqt support refined camo drop adidas eqt support refined running whitecamo adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running support 93 adidas eqt support 93

ES 0.16 ID字段调整及IDS-QUERY的使用

<Category: 搜索> 查看评论

ES0.16的版本,对ID字段做了调整,默认不会对其进行索引,所以对_id做查询和排序都将不起作用。 如下面的操作: 查询


排序

为保证兼容性的解决办法有如下两种:
1.每个索引的mapping中,加上_id

查询试试

2.节点级别的配置

如果没有必要,还是使用默认的就好,可以节省一个字段的开销,并且其他的API都是正常的,如。

idsQuery

支持多个type的ids-query

ids-filter类似就不说了,查文档
http://www.elasticsearch.org/guide/reference/query-dsl/ids-query.html
http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html

本文来自: ES 0.16 ID字段调整及IDS-QUERY的使用