Skip to content

Commit

Permalink
Upgrade to latest Jest version 5.3.3 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer authored and VanRoy committed Mar 12, 2018
1 parent 0a54df5 commit b032e40
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Versions

| spring data jest | spring boot | spring data elasticsearch | jest | elasticsearch |
|:------------------:|:--------------------:|:-------------------------:|:------:|:-------------:|
| 3.1.1-SNAPSHOT | 2.0.0 | 3.0.5.RELEASE | 5.3.3 | 5.5.0 |
| 3.1.0.RELEASE | 2.0.0 | 3.0.5.RELEASE | 5.3.2 | 5.5.0 |
| 3.0.0.RELEASE | 2.0.0.M4 | 3.0.0.RELEASE | 5.3.2 | 5.5.0 |
| 2.3.1.RELEASE | 1.5.x | 2.1.0.RELEASE | 2.0.4 | 2.4.4 |
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.vanroy</groupId>
<artifactId>spring-data-jest-build</artifactId>
<version>3.1.0.RELEASE</version>
<version>3.1.1-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Spring Data Jest Build</name>
Expand Down Expand Up @@ -50,7 +50,7 @@
<springboot>2.0.0.RELEASE</springboot>
<spring>5.0.4.RELEASE</spring>
<springdataes>3.0.5.RELEASE</springdataes>
<jest>5.3.2</jest>
<jest>5.3.3</jest>
<gson>2.8.0</gson>
<awssigning>0.0.16</awssigning>
<springcloudaws>1.2.1.RELEASE</springcloudaws>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-sample-data-jest-aws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.vanroy</groupId>
<artifactId>spring-data-jest-build</artifactId>
<version>3.1.0.RELEASE</version>
<version>3.1.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion spring-boot-sample-data-jest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.vanroy</groupId>
<artifactId>spring-data-jest-build</artifactId>
<version>3.1.0.RELEASE</version>
<version>3.1.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion spring-boot-starter-data-jest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.vanroy</groupId>
<artifactId>spring-data-jest-build</artifactId>
<version>3.1.0.RELEASE</version>
<version>3.1.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion spring-data-jest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.vanroy</groupId>
<artifactId>spring-data-jest-build</artifactId>
<version>3.1.0.RELEASE</version>
<version>3.1.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,9 @@ private <T> Count.Builder prepareCount(Query query, Class<T> clazz) {

Assert.notNull(indexName, "No index defined for Query");

Count.Builder countRequestBuilder = new Count.Builder().addIndex(Arrays.asList(indexName));
Count.Builder countRequestBuilder = new Count.Builder().addIndices(Arrays.asList(indexName));
if (types != null) {
countRequestBuilder.addType(Arrays.asList(types));
countRequestBuilder.addTypes(Arrays.asList(types));
}
return countRequestBuilder;
}
Expand Down Expand Up @@ -913,8 +913,8 @@ private SearchResult doScroll(SearchSourceBuilder searchSourceBuilder, CriteriaQ
}

Search.Builder search = new Search.Builder(searchSourceBuilder.toString()).
addType(criteriaQuery.getTypes()).
addIndex(criteriaQuery.getIndices()).
addTypes(criteriaQuery.getTypes()).
addIndices(criteriaQuery.getIndices()).
setParameter(Parameters.SIZE, criteriaQuery.getPageable().getPageSize()).
setParameter(Parameters.SCROLL, scrollTimeInMillis + "ms");

Expand All @@ -931,8 +931,8 @@ private SearchResult doScroll(SearchSourceBuilder searchSourceBuilder, SearchQue
}

Search.Builder search = new Search.Builder(searchSourceBuilder.toString()).
addType(searchQuery.getTypes()).
addIndex(searchQuery.getIndices()).
addTypes(searchQuery.getTypes()).
addIndices(searchQuery.getIndices()).
setParameter(Parameters.SIZE, searchQuery.getPageable().getPageSize()).
setParameter(Parameters.SCROLL, scrollTimeInMillis + "ms");

Expand Down Expand Up @@ -1313,8 +1313,8 @@ private SearchResult executeSearch(Query query, SearchSourceBuilder request) {
Search.Builder search = new Search.Builder(request.toString());
if (query != null) {
search.
addType(query.getTypes()).
addIndex(query.getIndices()).
addTypes(query.getTypes()).
addIndices(query.getIndices()).
setSearchType(SearchType.valueOf(query.getSearchType().name()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ public void shouldGetMappingForGivenEntity() throws Exception {
elasticsearchTemplate.createIndex(entity);
elasticsearchTemplate.putMapping(entity);
// when
Map<String, Map<String, Map<String, String>>> mapping = elasticsearchTemplate.getMapping(entity);
Map<String, Map<String, Map<String, Object>>> mapping = elasticsearchTemplate.getMapping(entity);
// then
assertThat(mapping.containsKey("properties"), is(true));
assertThat(mapping.get("properties").containsKey("message"), is(true));
Expand Down

0 comments on commit b032e40

Please sign in to comment.