![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
elasticsearch
21-夜一
早上搬砖,晚上砌梦想
展开
-
ES返回值数量超过10000条解决方式
现象ES默认返回数据量为10000条, 当分页的from超过10000条的时候,es就会如下报错:Result window is too large, from + size must be less than or equal to:[10000] but was [10500]. See the scroll api for a more efficient way to requestlarge data sets. This limit can be set by changing the转载 2021-12-17 10:11:57 · 3685 阅读 · 0 评论 -
springboot集成elasticsearch7
1.创建项目原创 2021-05-23 22:03:35 · 964 阅读 · 13 评论 -
elasticsearch使用kibana基本操作
1.创建索引PUT /索引名/类型名/ID{请求体}2.创建类型类型:字符串类型:text、keyword数字类型:long、integer、short、byte、double、float、half float、scaled float日期类型:date布尔值类型:boolean二进制类型:binary不指定类型,会有默认的类型3.修改:可以使用PUT.(不建议),也可以使用POST第二次执行,版本变为2,(覆盖操作:如果漏了age没写,数据就会变为空..原创 2021-05-20 04:32:49 · 391 阅读 · 0 评论 -
Windows安装elasticsearch7、head插件、kibana、IK分词器
安装esJDK版本要求:1.8+官网:https://www.elastic.co/cn/点击下载:解压:bin目录下启动:默认端口:9200启动成功安装es-head:地址:https://github.com/mobz/elasticsearch-head解压:安装cnpm:npm install cnpm -g --registry=https://registry.npm.taobao.orgcnpm install.原创 2021-05-20 03:00:49 · 255 阅读 · 0 评论 -
“error“:“Content-Type header [application/x-www-form-urlencoded] is not supported“
修改es查询结果的最大显示长度# curl -H "Content-Type: application/json" -XPUT http://xxx.xx.xx.xx:9200/supplier_flow_index/_settings -d '{ "index" : { "max_result_window" : 100000000}}'xxx.xx.xx.xx主机地址,supplier_flow_index是索引名称s中默认最大长度为10000条在使用setFrom()和setSize().原创 2021-05-07 16:50:24 · 440 阅读 · 0 评论 -
把es注册成服务启动,摆脱关闭cmd就结束es
当你安装完es后,启用的时候是运行es,bin目录下的elasticsearch.bat文件,但是这样使用,我们如果不小心误操作关闭了es,就很烦人了其实我们用mysql都知道,mysql是在服务里面启动的,我们只需要启动sqlyog就能连接mysql使用,其实es也能够做到这一点,我们可以把他注册到服务里面启动,操作如下图这样子你就只需要启动head(类似于sqlyog,一个视图...原创 2020-04-23 16:45:50 · 875 阅读 · 0 评论 -
启动elasticsearch.bat,闪退
下载了一个es,然后启动的时候闪退于是cmd,直接打开elasticsearch.bat,报下图的版本不兼容cmd看到1.8的版本环境变量1.6改好环境变量就好了原创 2020-04-21 19:44:14 · 2193 阅读 · 0 评论