public enum EsQueryTypeEnum extends Enum<EsQueryTypeEnum>
Copyright © 2021 xpc1024 All Rights Reserved
| 枚举常量和说明 |
|---|
AGGREGATION_QUERY
聚合查询 相当于mysql中的 group by 当然 不仅限于group by 还新增了 sum,avg,max,min等功能
|
EXISTS_QUERY
存在查询 相当于Mysql中的 is null,not null这种查询类型
|
INTERVAL_QUERY
区间查询,特殊的RANGE_QUERY 相当于mysql between
|
MATCH_ALL_QUERY
查询全部文档 相当于select all
|
MATCH_PHRASE
分词匹配 需要结果中也包含所有的分词,且顺序一样
|
MATCH_PHRASE_PREFIX
前缀匹配
|
MATCH_QUERY
模糊匹配 分词 相当于mysql like
|
MULTI_MATCH_QUERY
多字段匹配
|
PREFIX_QUERY
前缀匹配搜索
|
QUERY_STRING_QUERY
所有字段中搜索
|
RANGE_QUERY
|
TERM_QUERY
精确值匹配 相当于MySQL 等于
|
TERMS_QUERY
精确值列表匹配 相当于mysql in
|
WILDCARD_QUERY
通配,相当于mysql中的like
|
public static final EsQueryTypeEnum TERM_QUERY
public static final EsQueryTypeEnum TERMS_QUERY
public static final EsQueryTypeEnum MATCH_QUERY
public static final EsQueryTypeEnum RANGE_QUERY
范围查询内部使用RangeQueryBuilder
String、日期Date、日期LocalDate、日期时间LocalDateTime、带有时区的日期时间ZonedDateTimeRangeQueryBuilder.format(String)方法进行格式化, 字符串和format格式必须匹配。{"gmt_create": {"type": "date","format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis";}}"strict_date_optional_time||epoch_millis" Date、java8日期/日期时间java.time,format可以全指定为:yyyy-MM-dd'T'HH:mm:ss.SSSzRangeQueryBuilder.timeZone(String)指定public static final EsQueryTypeEnum INTERVAL_QUERY
public static final EsQueryTypeEnum EXISTS_QUERY
public static final EsQueryTypeEnum AGGREGATION_QUERY
public static final EsQueryTypeEnum WILDCARD_QUERY
public static final EsQueryTypeEnum MATCH_PHRASE
public static final EsQueryTypeEnum MATCH_ALL_QUERY
public static final EsQueryTypeEnum MATCH_PHRASE_PREFIX
public static final EsQueryTypeEnum MULTI_MATCH_QUERY
public static final EsQueryTypeEnum QUERY_STRING_QUERY
public static final EsQueryTypeEnum PREFIX_QUERY
public static EsQueryTypeEnum[] values()
for (EsQueryTypeEnum c : EsQueryTypeEnum.values()) System.out.println(c);
public static EsQueryTypeEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022. All rights reserved.