mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-07 17:48:42 +08:00
v2.0-beta1
全部细节优化
This commit is contained in:
parent
2a855e225c
commit
b680f83eab
@ -20,23 +20,6 @@ public enum EsQueryTypeEnum {
|
|||||||
MATCH,
|
MATCH,
|
||||||
/**
|
/**
|
||||||
* 范围查询
|
* 范围查询
|
||||||
* <p>
|
|
||||||
* 范围查询内部使用{@LINK RANGEQUERYBUILDER}
|
|
||||||
* <H1>如果是对于日期类型的比较,进行说明:</H1>
|
|
||||||
* <UL>
|
|
||||||
* <LI>1、VALUE支持: 字符串{@LINK STRING}、日期{@LINK DATE}、日期{@LINK LOCALDATE}、日期时间{@LINK LOCALDATETIME}、带有时区的日期时间{@LINK ZONEDDATETIME}</LI>
|
|
||||||
* <LI>2、对于字符串类型,可以使用{@LINK RANGEQUERYBUILDER#FORMAT(STRING)}方法进行格式化, 字符串和FORMAT格式必须匹配。</LI>
|
|
||||||
* <LI>2-1、如果,FORMAT为空:会使用,创建索引的MAPPER指定格式化方式,如:<CODE>{"GMT_CREATE": {"TYPE": "DATE","FORMAT": "YYYY-MM-DD HH:MM:SS||YYYY-MM-DD||EPOCH_MILLIS";}}</CODE></LI>
|
|
||||||
* <LI>2-2、如果,创建索引的MAPPER中也未指定FORMAT,会使用:<CODE>"STRICT_DATE_OPTIONAL_TIME||EPOCH_MILLIS"</CODE> </LI>
|
|
||||||
* <LI>2-2-1、STRICT_DATE_OPTIONAL_TIME:中文含义,严格日期可选时间,即:日期必须有,时间可选;ISO DATETIME PARSER 可以正常解析的都支持,种类非常丰富;</LI>
|
|
||||||
* <LI>2-2-2、EPOCH_MILLIS: EPOCH 以来的毫秒数,即:1970.1.1 零点到现在的毫秒数</LI>
|
|
||||||
* <LI>2-2-1-1、ISO DATEOPTIONALTIMEPARSER: HTTPS://WWW.JODA.ORG/JODA-TIME/APIDOCS/ORG/JODA/TIME/FORMAT/ISODATETIMEFORMAT.HTML#DATEOPTIONALTIMEPARSER-- </LI>
|
|
||||||
* <LI>2-2-1-2、如:YYYY-MM-DD、YYYY-MM-DD HH:MM:SS、YYYY-MM-DD HH:MM:SS.SSS、YYYY-MM-DD'T'HH:MM:SSZ、YYYY-MM-DD'T'HH:MM:SS.SSSZ</LI>
|
|
||||||
* <LI>2-3、如果VALUE是:日期{@LINK DATE}、JAVA8日期/日期时间{@LINK JAVA.TIME},FORMAT可以全指定为:YYYY-MM-DD'T'HH:MM:SS.SSSZ</LI>
|
|
||||||
* <LI>3、VALUE: 中字符串未包含时区,或者是:未包含时区的日期对象,需要手工指定日期的时区,不指定就是UTC(0时区的日期),通过{@LINK RANGEQUERYBUILDER#TIMEZONE(STRING)}指定</LI>
|
|
||||||
* <LI>3-1: ZONEID.OF("UTC").TOSTRING() 0时区、ZONEID.OF("ASIA/SHANGHAI").TOSTRING() 东八区、ZONEID.OF("EUROPE/PARIS").TOSTRING()东一区</LI>
|
|
||||||
* <LI>3-2: 我们一般应该使用,东八区,ASIA/SHANGHAI</LI>
|
|
||||||
* </UL>
|
|
||||||
*/
|
*/
|
||||||
GE,
|
GE,
|
||||||
GT,
|
GT,
|
||||||
|
|||||||
@ -1305,7 +1305,7 @@ public interface Compare<Children, R> extends Serializable {
|
|||||||
/**
|
/**
|
||||||
* 大于
|
* 大于
|
||||||
*
|
*
|
||||||
* @param condition
|
* @param condition 执行条件
|
||||||
* @param column 列
|
* @param column 列
|
||||||
* @param val 值
|
* @param val 值
|
||||||
* @param boost 权重
|
* @param boost 权重
|
||||||
|
|||||||
@ -71,6 +71,7 @@ public class WrapperProcessor {
|
|||||||
*
|
*
|
||||||
* @param paramList 参数列表
|
* @param paramList 参数列表
|
||||||
* @param entityClass 实体类
|
* @param entityClass 实体类
|
||||||
|
* @return BoolQueryBuilder
|
||||||
*/
|
*/
|
||||||
public static BoolQueryBuilder initBoolQueryBuilder(List<Param> paramList, Class<?> entityClass) {
|
public static BoolQueryBuilder initBoolQueryBuilder(List<Param> paramList, Class<?> entityClass) {
|
||||||
// 建立参数森林(无根树)
|
// 建立参数森林(无根树)
|
||||||
|
|||||||
@ -167,7 +167,6 @@ public class FieldUtils {
|
|||||||
*
|
*
|
||||||
* @param field 原字段名
|
* @param field 原字段名
|
||||||
* @param mappingColumnMap 字段映射关系map
|
* @param mappingColumnMap 字段映射关系map
|
||||||
* @param isMapUnderscoreToCamelCase 是否开启下划线自动转驼峰
|
|
||||||
* @return 实际字段名
|
* @return 实际字段名
|
||||||
*/
|
*/
|
||||||
public static String getRealField(String field, Map<String, String> mappingColumnMap) {
|
public static String getRealField(String field, Map<String, String> mappingColumnMap) {
|
||||||
|
|||||||
@ -43,27 +43,27 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.easy-es</groupId>
|
<groupId>cn.easy-es</groupId>
|
||||||
<artifactId>easy-es-boot-starter</artifactId>
|
<artifactId>easy-es-boot-starter</artifactId>
|
||||||
<version>${version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.easy-es</groupId>
|
<groupId>cn.easy-es</groupId>
|
||||||
<artifactId>easy-es-core</artifactId>
|
<artifactId>easy-es-core</artifactId>
|
||||||
<version>${version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.easy-es</groupId>
|
<groupId>cn.easy-es</groupId>
|
||||||
<artifactId>easy-es-extension</artifactId>
|
<artifactId>easy-es-extension</artifactId>
|
||||||
<version>${version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.easy-es</groupId>
|
<groupId>cn.easy-es</groupId>
|
||||||
<artifactId>easy-es-common</artifactId>
|
<artifactId>easy-es-common</artifactId>
|
||||||
<version>${version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.easy-es</groupId>
|
<groupId>cn.easy-es</groupId>
|
||||||
<artifactId>easy-es-annotation</artifactId>
|
<artifactId>easy-es-annotation</artifactId>
|
||||||
<version>${version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.easy-es</groupId>
|
<groupId>cn.easy-es</groupId>
|
||||||
<artifactId>easy-es-boot-starter</artifactId>
|
<artifactId>easy-es-boot-starter</artifactId>
|
||||||
<version>2.0.0-beta1</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@ -28,7 +28,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.easy-es</groupId>
|
<groupId>cn.easy-es</groupId>
|
||||||
<artifactId>easy-es-boot-starter</artifactId>
|
<artifactId>easy-es-boot-starter</artifactId>
|
||||||
<version>${version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user