【发布时间】:2016-06-28 07:12:55
【问题描述】:
所以基本上我在尝试新事物。这次是弹性搜索。 我已经安装了 elastic 和 kibana,当然还有 sense 插件。 我尝试了所有基本命令,如创建索引、映射、添加文档等。 在我尝试批量插入之前一切顺利。
POST /ecommerce/product/_bulk
{"index":{"_id":"1002"}}
{"name":"SWA magazine", "price":"90.000", "description":"swa magazine description",
"status":"active", "quantity":3, "categories":[{"name":"magazine"}],
"tags":["business", "magazine", "sales", "news"]}
{"index":{"_id":"1003"}}
{"name":"SWA magazine", "price":"90.000", "description":"swa magazine description",
"status":"active", "quantity":3, "categories":[{"name":"magazine"}],
"tags":["business", "magazine", "sales", "news"]}
请帮我解决这个问题。 非常感谢。
【问题讨论】:
-
删除文档中的新行,你会没事的。每个文档必须在一行中
-
@Val 兄弟是哪一行?
标签: elasticsearch kibana-4 sense