elasticsearch-cn/elasticsearch-definitive-guide

映射和分析 这一篇 开头的例子 好像已经不能用了

rymuscle opened this issue · 4 comments

使用了如下例子进行模拟, 根本查询不出来

POST /gb/tweet/_bulk
{ "index": { "_id": 1 }}
{ "name" : "高性能MySQL", "user_id" : "15", "tweet" : "page's number is gt than 700" , "create_at":"2015-09-25"}
{ "index": { "_id": 2 }}
{ "name" : "Elasticsearch 权威指南", "user_id" : "5", "tweet" : "this is a very nice book" , "create_at":"2018-02-11"}
{ "index": { "_id": 3 }}
{ "name" : "Solr 实战", "user_id" : "1098", "tweet" : "my next book" , "create_at":"2017-06-06"}
{ "index": { "_id": 4 }}
{ "name" : "Kafka 内核分析", "user_id" : "79", "tweet" : "kafka need to compare with rabbitmq" , "create_at":"2016-08-06"}

如下查询貌似没有结果, 感觉 _all 已经变了, 我用的是 est6

GET /gb/tweet/_search?q=2015

网上查过了, 有人说est6需要使用 copy_to, 但依然无效

Hyvi commented

貌似文档没有人维护了。我也用了其中的示例,一直报错,提示也不友好,好折腾的。

medcl commented

文档是2.x 分支,需要大修

现在测试数据找不到了