是不是配置出错了,留意一下配置里面的空格
node也是需要安装之后才能用的
format 的格式是:[yyyyMMdd HH:mm:ss||yyyyMMdd||epoch_millis]
传入的参数格式是:"date"
:
"1988-03-10"
应该是两者格式不匹配造成报错,要么修改下传入的参数,要么修改下format的格式
book/_mapping/novel?include_type_name=true PUT { "novel": { "properties": { "title": { "type": "text" } } } }
把请求体删掉
报错信息贴下。可能是请求body有误或无对应索引。
./bin/elasticsearch -d
命令字母拼写错误,仔细检查下不就可以了嘛??
不要用*号呢,
是这样的
请问大佬 您实现了吗。我也遇到了这个问题。
就是concat一下
可以播放成功呀~? 检查下网络是否正常,或者浏览器刷新下试试。
请确保你下载的是https://github.com/mobz/elasticsearch-head 中master分支最新代码
package.json中相关内容如下
"scripts": { "start": "grunt server", "test": "grunt jasmine", "proxy": "node proxy/index.js" }
可以7.x和8.x都可以
curl -X GET http://192.168.1.61:9200/_cat
伪分布式不用密码
批量插入数据
PUT http://localhost:9200/book/novel/_bulk
{ "index":{"_id": "5"} }
{ "author": "王五", "title": "菜谱", "word_count": 5000, "publish_date": "2002-10-01"}
{ "index":{"_id": "8"} }
{ "author": "瓦力", "title": "ElasticSearch入门", "word_count": 3000, "publish_date": "2017-08-20"}
{ "index":{"_id": "9"} }
{ "author": "很胖的瓦力", "title": "ElasticSearch精通", "word_count": 3000, "publish_date": "2017-08-15"}
{ "index":{"_id": "10"} }
{ "author": "牛魔王", "title": "芭蕉扇", "word_count": 1000, "publish_date": "2000-10-01"}
{ "index":{"_id": "2"} }
{ "author": "李三", "title": "Java入门", "word_count": 2000, "publish_date": "2010-10-01"}
{ "index":{"_id": "4"} }
{ "author": "李四", "title": "ElasticSearch大法好", "word_count": 1000, "publish_date": "2017-08-01"}
{ "index":{"_id": "6"} }
{ "author": "赵六", "title": "剑谱", "word_count": 10000, "publish_date": "1997-01-01"}
{ "index":{"_id": "1"} }
{ "author": "张三", "title": "移魂大法", "word_count": 1000, "publish_date": "2000-10-01"}
{ "index":{"_id": "7"} }
{ "author": "张三丰", "title": "太极拳", "word_count": 1000, "publish_date": "1997-01-01"}
{ "index":{"_id": "3"} }
{ "author": "张四", "title": "Python入门", "word_count": 2000, "publish_date": "2005-10-01"}
{ "index":{"_id": "11"} }
{ "author": "孙悟空", "title": "七十二变", "word_count": 1000, "publish_date": "2000-10-01"}
{ "index":{"_id": "11"} }
{ "author": "瓦力", "title": "瓦力教我们学ElasticSearch", "word_count": 1000, "publish_date": "2017-08-01 00:00:00"}
不仅要关注防火墙,还要检查linux端口是否对外开放
https://gitee.com/gnahz1/spring-Boot-elasticSearch5.5.2
。。。。自己不认真听讲还怪老师没讲清楚???免费的课程这样已经很不错了,师傅领进门,修行在个人
不加@ResponseBody会报错吗?
同样求助
+1~
建议使用ES集群模式,这样可以缓解这种情况,一般高并发下偶尔会发生这种问题