2021年3月3日
摘要:
[nested] nested object under path [XXX] is not of nested type这是因为在创建索引时没有指定类型为数组,这就是一个大坑,ES官方说可以不用指定数字组类型,结果不指定的聚合结果还不一样!!! 由于Elasticsearch底层使用了lucene
阅读全文
posted @ 2021-03-03 20:39
oktokeep
阅读(4992)
推荐(0)
2021年2月8日
摘要:
1.新增 test2/user2/1/_create PUT操作{"name":"qiqi","age":17} 2.查询 test2/user2/_search GET{"query":{"match":{"name":"qiqi"}}} 或:test2/user2/1 GET { - "_ind
阅读全文
posted @ 2021-02-08 23:11
oktokeep
阅读(437)
推荐(0)
2021年2月3日
摘要:
ES 内置的REST接口/ 获取版本信息/index/_search 搜索指定索引下的数据 test/_search/_aliases 获取或者操作索引下的别名 _aliases/index/ 查看指定索引下的详细信息 test/index/_mapping 创建或者操作mapping test/_
阅读全文
posted @ 2021-02-03 23:52
oktokeep
阅读(169)
推荐(0)
摘要:
1.引入jar包 <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>6.6.1</versio
阅读全文
posted @ 2021-02-03 23:49
oktokeep
阅读(612)
推荐(0)
2021年2月2日
摘要:
1.下载地址 https://github.com/lmenezes/cerebro/releases 2.下载cerebro-0.9.3.zip 运行bin/cerebro ,启动没有报错,并且命令行窗口持续打开即为启动成功.启动成功后默认监听9000端口. 3.访问:http://master:
阅读全文
posted @ 2021-02-02 08:57
oktokeep
阅读(315)
推荐(0)
2021年1月19日
摘要:
启动插件 /elasticsearch-head目录npm run start启动elasticsearch 不能使用root账号 切换账号:su es./bin/elasticsearch 打印日志 前台运行,Ctrl + C 则程序终止./bin/elasticsearch -d 后台运行模式
阅读全文
posted @ 2021-01-19 09:00
oktokeep
阅读(2346)
推荐(0)
2020年12月17日
摘要:
/** * */ package json; import java.util.Date; import java.util.Objects; import com.platformfee.util.tools.GsonUtils; import com.google.gson.Gson; impo
阅读全文
posted @ 2020-12-17 08:25
oktokeep
阅读(2057)
推荐(0)
摘要:
1.https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7 调用支付JSAPI缺少参数:total_fee 1、请检查预支付会话标识prepay_id是否已失效 2、请求的appid与下单接口的appid是否一致
阅读全文
posted @ 2020-12-17 08:17
oktokeep
阅读(10188)
推荐(0)
摘要:
1.捕获异常的方式try: img_list = img_list["name"]except: img_list = "" 2.对象进行判断if img_list: img_list = img_list["name"]else: img_list = "" demo textJson = jso
阅读全文
posted @ 2020-12-17 08:13
oktokeep
阅读(1778)
推荐(0)
2020年12月2日
摘要:
Date createTime = book.getCreateTime(); Date updateTime = book.getUpdateTime(); //属性值处理 BeanUtils.copyProperties(book, entity); entity.setCreateTime(L
阅读全文
posted @ 2020-12-02 21:52
oktokeep
阅读(1147)
推荐(0)