Compare commits

...

15 Commits

Author SHA1 Message Date
Spring Buildmaster
b69a012ddf DATAES-184 - Release version 1.2.2.RELEASE (Fowler SR2). 2015-07-28 06:43:43 -07:00
Oliver Gierke
b54f5ced6b DATAES-184 - Prepare 1.2.2.RELEASE (Fowler SR2). 2015-07-28 14:52:49 +02:00
Oliver Gierke
06d0aaad3d DATAES-184 - Updated changelog. 2015-07-28 14:52:40 +02:00
Oliver Gierke
caa7a31090 DATAES-173 - Updated changelog. 2015-07-01 10:22:49 +02:00
Oliver Gierke
fef3358e67 DATAES-174 - Updated changelog. 2015-07-01 10:22:43 +02:00
Oliver Gierke
10858d6728 DATAES-175 - After release cleanups. 2015-06-30 14:20:12 +02:00
Spring Buildmaster
6f43b2fd9b DATAES-175 - Prepare next development iteration. 2015-06-30 04:21:08 -07:00
Spring Buildmaster
031a74e6ae DATAES-175 - Release version 1.2.1.RELEASE (Fowler SR1). 2015-06-30 04:21:05 -07:00
Oliver Gierke
d1d5eaec34 DATAES-175 - Prepare 1.2.1.RELEASE (Fowler SR1). 2015-06-30 12:31:53 +02:00
Oliver Gierke
7b06a9687d DATAES-175 - Updated changelog. 2015-06-30 12:31:44 +02:00
Oliver Gierke
541c13de58 DATAES-168 - Updated changelog. 2015-06-30 12:15:13 +02:00
Mohsin Husen
6639d6a65b DATAES-164 - CriteriaQuery equals method has to use AND operator instead of OR 2015-05-15 12:25:45 +01:00
Mohsin Husen
55ed490776 DATAES-155 findAll(Iterable<ID> ids) doesn't set persistent entity id 2015-05-15 11:05:46 +01:00
Artur Konczak
8034fe1b0d DATAES-154 - Prepare next development iteration. 2015-05-11 10:42:03 +01:00
Kevin Leturc
fa8b8da809 DATAES-155 setPersistentEntityId in mapResutls(MultiGetResponse, Class). 2015-04-01 11:01:22 +02:00
6 changed files with 44 additions and 10 deletions

12
pom.xml
View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId> <artifactId>spring-data-elasticsearch</artifactId>
<version>1.3.0.BUILD-SNAPSHOT</version> <version>1.2.2.RELEASE</version>
<parent> <parent>
<groupId>org.springframework.data.build</groupId> <groupId>org.springframework.data.build</groupId>
<artifactId>spring-data-parent</artifactId> <artifactId>spring-data-parent</artifactId>
<version>1.7.0.BUILD-SNAPSHOT</version> <version>1.6.2.RELEASE</version>
<relativePath>../spring-data-build/parent/pom.xml</relativePath> <relativePath>../spring-data-build/parent/pom.xml</relativePath>
</parent> </parent>
@ -24,7 +24,7 @@
<commonscollections>3.2.1</commonscollections> <commonscollections>3.2.1</commonscollections>
<commonslang>2.6</commonslang> <commonslang>2.6</commonslang>
<elasticsearch>1.4.4</elasticsearch> <elasticsearch>1.4.4</elasticsearch>
<springdata.commons>1.11.0.BUILD-SNAPSHOT</springdata.commons> <springdata.commons>1.10.2.RELEASE</springdata.commons>
</properties> </properties>
@ -150,8 +150,8 @@
<repositories> <repositories>
<repository> <repository>
<id>spring-libs-snapshot</id> <id>spring-libs-release</id>
<url>https://repo.spring.io/libs-snapshot</url> <url>https://repo.spring.io/libs-release</url>
</repository> </repository>
</repositories> </repositories>

View File

@ -122,7 +122,7 @@ class CriteriaQueryProcessor {
switch (key) { switch (key) {
case EQUALS: case EQUALS:
query = queryString(searchText).field(fieldName); query = queryString(searchText).field(fieldName).defaultOperator(QueryStringQueryBuilder.Operator.AND);
break; break;
case CONTAINS: case CONTAINS:
query = queryString("*" + searchText + "*").field(fieldName).analyzeWildcard(true); query = queryString("*" + searchText + "*").field(fieldName).analyzeWildcard(true);

View File

@ -145,6 +145,7 @@ public class DefaultResultMapper extends AbstractResultMapper {
for (MultiGetItemResponse response : responses.getResponses()) { for (MultiGetItemResponse response : responses.getResponses()) {
if (!response.isFailed() && response.getResponse().isExists()) { if (!response.isFailed() && response.getResponse().isExists()) {
T result = mapEntity(response.getResponse().getSourceAsString(), clazz); T result = mapEntity(response.getResponse().getSourceAsString(), clazz);
setPersistentEntityId(result, response.getResponse().getId(), clazz);
list.add(result); list.add(result);
} }
} }

View File

@ -1,6 +1,39 @@
Spring Data Elasticsearch Changelog Spring Data Elasticsearch Changelog
=================================== ===================================
Changes in version 1.2.2.RELEASE (2015-07-28)
---------------------------------------------
* DATAES-184 - Release 1.2.2 (Fowler).
Changes in version 1.0.6.RELEASE (2015-07-01)
---------------------------------------------
* DATAES-173 - Release 1.0.6 (Dijkstra).
Changes in version 1.1.3.RELEASE (2015-07-01)
---------------------------------------------
* DATAES-174 - Release 1.1.3 (Evans).
Changes in version 1.2.1.RELEASE (2015-06-30)
---------------------------------------------
* DATAES-175 - Release 1.2.1 (Fowler).
* DATAES-164 - CriteriaQuery equals method has to use AND operator instead of OR.
* DATAES-155 - findAll(Iterable<ID> ids) doesn't set persistent entity id.
Changes in version 1.3.0.M1 (2015-06-02)
----------------------------------------
* DATAES-168 - Release 1.3 M1 (Gosling).
* DATAES-164 - CriteriaQuery equals method has to use AND operator instead of OR.
* DATAES-162 - Adapt API changes in Spring Data Commons to simplify custom repository base class registration.
* DATAES-159 - Bulk update with ElasticsearchTemplate.
* DATAES-158 - UpdateRequest.script not working.
* DATAES-157 - support deleteBy operation.
* DATAES-155 - findAll(Iterable<ID> ids) doesn't set persistent entity id.
Changes in version 1.2.0.RELEASE (2015-03-23) Changes in version 1.2.0.RELEASE (2015-03-23)
--------------------------------------------- ---------------------------------------------
* DATAES-154 - Release 1.2 GA. * DATAES-154 - Release 1.2 GA.

View File

@ -1,4 +1,4 @@
Spring Data Elasticsearch 1.2 GA Spring Data Elasticsearch 1.2.2
Copyright (c) [2013-2015] Pivotal Software, Inc. Copyright (c) [2013-2015] Pivotal Software, Inc.
This product is licensed to you under the Apache License, Version 2.0 (the "License"). This product is licensed to you under the Apache License, Version 2.0 (the "License").

View File

@ -223,12 +223,12 @@ public class CriteriaQueryTests {
elasticsearchTemplate.bulkIndex(indexQueries); elasticsearchTemplate.bulkIndex(indexQueries);
elasticsearchTemplate.refresh(SampleEntity.class, true); elasticsearchTemplate.refresh(SampleEntity.class, true);
CriteriaQuery criteriaQuery = new CriteriaQuery(new Criteria("message").is("some message").is("test message")); CriteriaQuery criteriaQuery = new CriteriaQuery(new Criteria("message").is("some message"));
// when // when
Page<SampleEntity> page = elasticsearchTemplate.queryForPage(criteriaQuery, SampleEntity.class); Page<SampleEntity> page = elasticsearchTemplate.queryForPage(criteriaQuery, SampleEntity.class);
// then // then
assertThat("message", is(criteriaQuery.getCriteria().getField().getName())); assertThat("message", is(criteriaQuery.getCriteria().getField().getName()));
assertThat(page.getTotalElements(), is(greaterThanOrEqualTo(2L))); assertThat(page.getTotalElements(), is(equalTo(1L)));
} }
@Test @Test