Skip to content

Commit db482b4

Browse files
author
Luc Boutier
committed
Allow to get current query builder.
1 parent f81323c commit db482b4

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

elasticsearch-annotations/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
<parent>
55
<groupId>org.alien4cloud</groupId>
66
<artifactId>elasticsearch-mapping-parent</artifactId>
7-
<version>1.7.3</version>
7+
<version>1.7.4</version>
88
</parent>
99

1010
<artifactId>elasticsearch-annotations</artifactId>
1111
<name>Elastic search annotations</name>
12-
<description>Annotations for elastic search that can be handled by the elasticsearch-mapping's MappingBuilder.</description>
12+
<description>Annotations for elastic search that can be handled by the elasticsearch-mapping's MappingBuilder.
13+
</description>
1314

1415
<dependencies>
1516
<dependency>

elasticsearch-mapping/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.alien4cloud</groupId>
66
<artifactId>elasticsearch-mapping-parent</artifactId>
7-
<version>1.7.3</version>
7+
<version>1.7.4</version>
88
</parent>
99

1010
<artifactId>elasticsearch-mapping</artifactId>

elasticsearch-mapping/src/main/java/org/elasticsearch/mapping/QueryHelper.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ public interface IQueryBuilderHelper<T extends IQueryBuilderHelper> {
120120
* @return The count response.
121121
*/
122122
CountResponse count(String[] indices, String... types);
123+
124+
/**
125+
* Return the current query builder.
126+
*
127+
* @return The elasticsearch query builder.
128+
*/
129+
QueryBuilder getQueryBuilder();
123130
}
124131

125132
public interface IFilterableQueryBuilderHelper<T extends IFilterableQueryBuilderHelper> extends IQueryBuilderHelper<T> {
@@ -307,6 +314,11 @@ public CountResponse count(String[] indices, String... types) {
307314
return countRequestBuilder.execute().actionGet();
308315
}
309316

317+
@Override
318+
public QueryBuilder getQueryBuilder() {
319+
return this.queryBuilder;
320+
}
321+
310322
@Override
311323
public QueryBuilderHelper prepareSearch(String... indices) {
312324
this.searchRequestBuilder = esClient.getClient().prepareSearch();

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.alien4cloud</groupId>
55
<artifactId>elasticsearch-mapping-parent</artifactId>
6-
<version>1.7.3</version>
6+
<version>1.7.4</version>
77
<packaging>pom</packaging>
88

99
<name>Elastic search mapping parent</name>

0 commit comments

Comments
 (0)