Skip to content

Commit b334669

Browse files
committed
updates ES version
1 parent 5472bd8 commit b334669

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

elasticsearch-driver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Once this a communication layer to Elasticsearch, we're using integration test,
1313
1. Install docker: https://www.docker.com/
1414
1. https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
1515
1. Run docker command
16-
1. `docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.2.3`
16+
1. `docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.3.0`
1717
1. Execute the maven install `mvn clean install`
1818

1919

elasticsearch-driver/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6969
<maven.compile.targetLevel>1.8</maven.compile.targetLevel>
7070
<maven.compile.sourceLevel>1.8</maven.compile.sourceLevel>
71-
<es.version>6.2.3</es.version>
71+
<es.version>6.3.0</es.version>
7272
</properties>
7373
<dependencies>
7474
<dependency>

elasticsearch-driver/src/test/java/org/jnosql/diana/elasticsearch/document/ElasticsearchDocumentCollectionManagerTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import java.util.Arrays;
3030
import java.util.List;
3131
import java.util.concurrent.TimeUnit;
32+
import java.util.stream.Collectors;
3233

3334
import static java.util.Arrays.asList;
3435
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
@@ -144,7 +145,9 @@ public void shouldFindDocumentByName() throws InterruptedException {
144145
TimeUnit.SECONDS.sleep(1L);
145146
List<DocumentEntity> entities = entityManager.select(query);
146147
assertFalse(entities.isEmpty());
147-
assertThat(entities, contains(entity));
148+
List<Document> names = entities.stream().map(e -> e.find("name").get())
149+
.distinct().collect(Collectors.toList());
150+
assertThat(names, contains(name));
148151
}
149152

150153
@Test

0 commit comments

Comments
 (0)