com.github.yang69:commons-es

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

GroupId

GroupId

com.github.yang69
ArtifactId

ArtifactId

commons-es
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

https://github.com/yang69/commons-es

Download commons-es

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.yang69/commons-es/ -->
<dependency>
    <groupId>com.github.yang69</groupId>
    <artifactId>commons-es</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.yang69/commons-es/
implementation 'com.github.yang69:commons-es:1.0'
// https://jarcasting.com/artifacts/com.github.yang69/commons-es/
implementation ("com.github.yang69:commons-es:1.0")
'com.github.yang69:commons-es:jar:1.0'
<dependency org="com.github.yang69" name="commons-es" rev="1.0">
  <artifact name="commons-es" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.yang69', module='commons-es', version='1.0')
)
libraryDependencies += "com.github.yang69" % "commons-es" % "1.0"
[com.github.yang69/commons-es "1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

commons-es

This library provides a simple way to generate basic Elasticsearch DSL. To use this library, add the following dependency to your project:

该项目提供了一种生成基本的 Elasticsearch DSL 的简单方法。

<dependency>
  <groupId>com.github.yang69</groupId>
  <artifactId>commons-es</artifactId>
  <version>1.0</version>
</dependency>

Version Compatibility: This module is compatible with Elasticsearch 2.x - 6.x.

版本兼容性:兼容于Elasticsearch 2.x 到 6.x

Usage | 使用方法

String dslString = new ElasticsearchQuery()
          .filter("name", "yang")
          .notFilter("sex", "male")
          .exists("job")
          .notExists("crime")
          .range("age", "gte", 18, "lt", 60)
          .size(10)
          .from(1)
          .build()

Change Log | 更改日志

1.0 支持简单的过滤条件(满足/不满足/满足其一/一个都不满足)、简单的范围过滤(满足/不满足)、分页查询、存在性判断(存在/不存在)

Versions

Version
1.0