mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-07 01:28:37 +08:00
replace the old keywords with Easysearch
This commit is contained in:
parent
afcd5f1024
commit
49faa149bc
@ -42,13 +42,15 @@
|
|||||||
# 简介 | Intro
|
# 简介 | Intro
|
||||||
---
|
---
|
||||||
|
|
||||||
Easy-Es是一款简化ElasticSearch搜索引擎操作的开源框架,全自动智能索引托管.
|
Easy-Es for Easysearch 是一款简化 INFINI Easysearch 搜索引擎操作的开源框架,全自动智能索引托管.
|
||||||
|
|
||||||
目前功能丰富度和易用度及性能已全面领先SpringData-Elasticsearch.
|
Easysearch 是一个轻量级且自主可控的 国产化搜索引擎。
|
||||||
|
|
||||||
|
Easy-Es for Easysearch 是国内首家专门针对 Easysearch 客户端简化的工具。
|
||||||
|
|
||||||
简化`CRUD`及其它高阶操作,可以更好的帮助开发者减轻开发负担
|
简化`CRUD`及其它高阶操作,可以更好的帮助开发者减轻开发负担
|
||||||
|
|
||||||
底层采用Es官方提供的RestHighLevelClient,保证其原生性能及拓展性.
|
底层采用 Easysearch Java Client,保证其原生性能及拓展性.
|
||||||
|
|
||||||
技术讨论 QQ 群 :897570597 群内可在群文件中免费领取 颈椎保护 | 增肌 | 减脂 等健身计划 无套路
|
技术讨论 QQ 群 :897570597 群内可在群文件中免费领取 颈椎保护 | 增肌 | 减脂 等健身计划 无套路
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
## What is Easy-Es?
|
## What is Easy-Es?
|
||||||
---
|
---
|
||||||
|
|
||||||
Easy-Es is a powerfully enhanced toolkit of RestHighLevelClient for simplify development. This toolkit provides some efficient, useful, out-of-the-box features for ElasticSearch. By using Easy-Es, you can use MySQL syntax to complete Es queries. Use it can effectively save your development time.
|
Easy-Es is a powerfully enhanced toolkit of RestHighLevelClient for simplify development. This toolkit provides some efficient, useful, out-of-the-box features for Easysearch. By using Easy-Es, you can use MySQL syntax to complete Es queries. Use it can effectively save your development time.
|
||||||
|
|
||||||
## Official website
|
## Official website
|
||||||
---
|
---
|
||||||
|
|||||||
@ -35,9 +35,9 @@ public class EEVersionUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取elasticsearch client 版本
|
* 获取 easysearch-client 版本
|
||||||
* <p>
|
* <p>
|
||||||
* elasticsearch 客户端必须通过 restHighLevelClient.info 获取,无法使用getPackage.getImplementationVersion 获取
|
* Easysearch 客户端必须通过 restHighLevelClient.info 获取,无法使用getPackage.getImplementationVersion 获取
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param restHighLevelClient es高级客户端
|
* @param restHighLevelClient es高级客户端
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import org.easysearch.client.RestHighLevelClient;
|
|||||||
import static org.dromara.easyes.common.constants.BaseEsConstants.UNKNOWN;
|
import static org.dromara.easyes.common.constants.BaseEsConstants.UNKNOWN;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* elasticsearch 构造器
|
* Esasysearch 构造器
|
||||||
*/
|
*/
|
||||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public class RestHighLevelClientBuilder {
|
public class RestHighLevelClientBuilder {
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
<version>2.1.0</version>
|
<version>2.1.0</version>
|
||||||
|
|
||||||
<name>easy-es-parent</name>
|
<name>easy-es-parent</name>
|
||||||
<description>easy use for elastic search</description>
|
<description>easy use for Easysearch</description>
|
||||||
<url>https://github.com/dromara/easy-es</url>
|
<url>https://github.com/dromara/easy-es</url>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
|
|||||||
@ -15,7 +15,7 @@ public class MySettingsProvider extends DefaultSettingsProvider {
|
|||||||
public Map<String, Object> getSettings() {
|
public Map<String, Object> getSettings() {
|
||||||
// TODO 这里可以自定义你的settings实现,将自定义的settings置入map并返回即可
|
// TODO 这里可以自定义你的settings实现,将自定义的settings置入map并返回即可
|
||||||
Map<String, Object> mySettings = new HashMap<>();
|
Map<String, Object> mySettings = new HashMap<>();
|
||||||
// 例如指定查询操作的慢日志阈值为30秒,当查询操作的执行时间超过此阈值时,Elasticsearch会记录相应的慢日志并发出警告
|
// 例如指定查询操作的慢日志阈值为30秒,当查询操作的执行时间超过此阈值时,Easysearch会记录相应的慢日志并发出警告
|
||||||
mySettings.put("index.search.slowlog.threshold.query.warn", "30s");
|
mySettings.put("index.search.slowlog.threshold.query.warn", "30s");
|
||||||
return mySettings;
|
return mySettings;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 由于es索引的settings灵活多变,框架只能针对一部分场景作简化,其余场景需要用户自定义实现
|
* 由于 Easysearch 索引的 settings 灵活多变,框架只能针对一部分场景作简化,其余场景需要用户自定义实现
|
||||||
* <p>
|
* <p>
|
||||||
* Copyright © 2024 xpc1024 All Rights Reserved
|
* Copyright © 2024 xpc1024 All Rights Reserved
|
||||||
**/
|
**/
|
||||||
@ -15,7 +15,7 @@ public class MySettingsProvider extends DefaultSettingsProvider {
|
|||||||
public Map<String, Object> getSettings() {
|
public Map<String, Object> getSettings() {
|
||||||
// TODO 这里可以自定义你的settings实现,将自定义的settings置入map并返回即可
|
// TODO 这里可以自定义你的settings实现,将自定义的settings置入map并返回即可
|
||||||
Map<String, Object> mySettings = new HashMap<>();
|
Map<String, Object> mySettings = new HashMap<>();
|
||||||
// 例如指定查询操作的慢日志阈值为30秒,当查询操作的执行时间超过此阈值时,Elasticsearch会记录相应的慢日志并发出警告
|
// 例如指定查询操作的慢日志阈值为30秒,当查询操作的执行时间超过此阈值时,Easysearch会记录相应的慢日志并发出警告
|
||||||
mySettings.put("index.search.slowlog.threshold.query.warn", "30s");
|
mySettings.put("index.search.slowlog.threshold.query.warn", "30s");
|
||||||
return mySettings;
|
return mySettings;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ public class MySettingsProvider extends DefaultSettingsProvider {
|
|||||||
public Map<String, Object> getSettings() {
|
public Map<String, Object> getSettings() {
|
||||||
// TODO 这里可以自定义你的settings实现,将自定义的settings置入map并返回即可
|
// TODO 这里可以自定义你的settings实现,将自定义的settings置入map并返回即可
|
||||||
Map<String, Object> mySettings = new HashMap<>();
|
Map<String, Object> mySettings = new HashMap<>();
|
||||||
// 例如指定查询操作的慢日志阈值为30秒,当查询操作的执行时间超过此阈值时,Elasticsearch会记录相应的慢日志并发出警告
|
// 例如指定查询操作的慢日志阈值为30秒,当查询操作的执行时间超过此阈值时,Easysearch会记录相应的慢日志并发出警告
|
||||||
mySettings.put("index.search.slowlog.threshold.query.warn", "30s");
|
mySettings.put("index.search.slowlog.threshold.query.warn", "30s");
|
||||||
return mySettings;
|
return mySettings;
|
||||||
}
|
}
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@ -9,7 +9,7 @@
|
|||||||
<version>2.1.0</version>
|
<version>2.1.0</version>
|
||||||
|
|
||||||
<name>easy-es</name>
|
<name>easy-es</name>
|
||||||
<description>easy use for elastic search</description>
|
<description>easy use for Easysearch</description>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>easy-es-parent</module>
|
<module>easy-es-parent</module>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user