ES数据库
文章平均质量分 85
java漫步天下
生命不息,奋斗不止!挺住,意味着一切!
展开
-
es数据库text类型和keyword类型数据中match、match_phrase、query_string、term之间区别
(一)text字段和keyword字段的区别以下给出一个例子:首先建立一个索引和类型,引入一个keywork的字段:PUT my_index{ "mappings": { "products": { "properties": { "name": { "type": "keyword" } } } }}然后查询是否有索引:GET _cluster/state可以看到已经创原创 2021-06-09 16:05:58 · 5465 阅读 · 1 评论 -
Page 31 of 30 containing UNKNOWN instances 解决方法
Page 31 of 30 containing UNKNOWN instances数据库只有10条数据,但是我offset设置了20,导致报错,意思就是数据库没有那么多的数据,你硬是要这样子传,page分页就会报错,把offset改为0,就好。原创 2020-09-17 19:43:40 · 755 阅读 · 0 评论 -
ES数据库-Result window is too large, from + size must be less than or equal to: [10000] but was [12452]
项目场景:初始化亚马逊帐号关系表的认领时间问题描述:报错的重点:Result window is too large, from + size must be less than or equal to: [10000] but was [12452]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max原创 2020-09-16 14:50:16 · 2759 阅读 · 0 评论