![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Elasticsearch 7.x学习笔记
文章平均质量分 51
程裕强
开源是人类最大的公益事业!--程裕强
展开
-
实测:NLPchina/elasticsearch-sql
1、安装elasticsearch-sql插件(1)安装elasticsearch-sql插件D:\app\elasticsearch-7.12.0>bin\elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/7.12.0.0/elasticsearch-sql-7.12.0.0.zip"warning: usage of JAVA_HOME is depreca原创 2021-08-09 17:35:38 · 1607 阅读 · 0 评论 -
Elasticsearch:提高某字段评分
public Iterator<DocBean> search(String key,Integer pageNum,Integer pageSize) { BoolQueryBuilder boolQueryBuilder= QueryBuilders.boolQuery() .should(QueryBuilders.matc...原创 2019-11-13 09:58:50 · 1860 阅读 · 0 评论 -
完整教程:Springboot 2.2整合elasticsearch 7.x (spring-boot-starter-data-elasticsearch)
请注意,SpringBoot是2.2.0.RELEASE才兼容elasticsearch 7.x废话不多说,直接上代码。1、pom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001...原创 2019-11-06 16:55:48 · 87817 阅读 · 74 评论 -
设置elasticsearch 7.x用户名和密码
1、修改elasticsearch.ymlelasticsearch.ymlhttp.cors.enabled: truehttp.cors.allow-origin: "*"http.cors.allow-headers: Authorizationxpack.security.enabled: truexpack.security.transport.ssl.enabled: tr...原创 2019-11-06 15:28:17 · 29988 阅读 · 3 评论 -
java.lang.NoSuchMethodError: org.elasticsearch.action.support.master.AcknowledgedResponse
参考官方教程<dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <vers...原创 2019-07-16 16:55:54 · 5265 阅读 · 1 评论 -
NoSuchMethodError: org.elasticsearch.action.support.IndicesOptions.ignoreThrottled()Z
<dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>...原创 2019-07-15 16:26:16 · 2757 阅读 · 0 评论 -
Elasticsearch 7.x NoNodeAvailableException: None of the configured nodes are available
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency...原创 2019-07-09 14:27:52 · 5432 阅读 · 0 评论 -
AccessDeniedException: /opt/elasticsearch-7.0.0/config/elasticsearch.keystore
[elastic@node2 elasticsearch-7.0.0]$ bin/elasticsearchOpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.Excepti...原创 2019-05-05 14:42:27 · 5434 阅读 · 0 评论 -
Elasticsearch 7.x生产配置
虽然Elasticsearch需要很少的配置,但是有一些设置需要手动配置,并且必须在进入生产之前进行配置。1、官方文档这些重要配置说明,请参考官方文档:https://www.elastic.co/guide/en/elasticsearch/reference/7.x/important-settings.html2、参数说明2.1 path.data和path.logsIf yo...原创 2019-05-05 11:12:59 · 40308 阅读 · 1 评论 -
Elasticsearch 7.x:3、文档管理
3.1 添加文档3.2 更新文档3.3 获取文档3.4 查询文档3.5 批量操作3.6 版本控制3.7 路由控制原创 2019-01-10 11:34:15 · 7392 阅读 · 0 评论 -
Elasticsearch 7.x:2、索引管理
2.1 新建索引(1)索引名小写PUT test{ &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;acknowledged&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot; : true, &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;shards_acknowledged&amp;a原创 2019-01-07 17:40:58 · 13886 阅读 · 3 评论 -
Elasticsearch 7.x:1、图解Windows本地测试环境搭建
1.1 JDK配置(1)下载Windows版本的JDK8,并安装。(2)配置JAVA_HOME环境变量1.2 Windows版本下载1.3 启动目录结构:bin:启动文件config:配置文件log4j2.properties:日志配置文件jvm.options:java虚拟机的配置elasticsearch.yml:es的配置文件data:索引数据目录...原创 2019-01-07 10:08:30 · 4857 阅读 · 2 评论