Skip to content

Commit 717c898

Browse files
committed
new version for 2.1.0 -> 2.1.0.2
1 parent eb6bc06 commit 717c898

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.nlpcn</groupId>
55
<artifactId>elasticsearch-sql</artifactId>
6-
<version>2.0.3</version>
6+
<version>2.1.0.2</version>
77
<packaging>jar</packaging>
88
<description>Query elasticsearch using SQL</description>
99
<name>elasticsearch-sql</name>
@@ -57,7 +57,7 @@
5757
<elasticsearch.plugin.name>sql</elasticsearch.plugin.name>
5858
<elasticsearch.plugin.site>true</elasticsearch.plugin.site>
5959
<elasticsearch.plugin.jvm>true</elasticsearch.plugin.jvm>
60-
<elasticsearch.version>2.0.0</elasticsearch.version>
60+
<elasticsearch.version>2.1.0</elasticsearch.version>
6161
<elasticsearch.plugin.classname>org.elasticsearch.plugin.nlpcn.SqlPlug</elasticsearch.plugin.classname>
6262

6363
</properties>
@@ -66,13 +66,13 @@
6666
<dependency>
6767
<groupId>org.elasticsearch</groupId>
6868
<artifactId>elasticsearch</artifactId>
69-
<version>2.0.0</version>
69+
<version>2.1.0</version>
7070
<scope>provided</scope>
7171
</dependency>
7272
<dependency>
7373
<groupId>org.elasticsearch.plugin</groupId>
7474
<artifactId>delete-by-query</artifactId>
75-
<version>2.0.0</version>
75+
<version>2.1.0</version>
7676
<scope>provided</scope>
7777
</dependency>
7878
<dependency>

src/test/java/org/nlpcn/es4sql/MainTestSuite.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public class MainTestSuite {
4949
@BeforeClass
5050
public static void setUp() throws Exception {
5151

52-
Settings settings = Settings.builder().put("plugin.types", DeleteByQueryPlugin.class.getName()).build();
53-
client = TransportClient.builder().settings(settings).build().addTransportAddress(getTransportAddress());
52+
client = TransportClient.builder().addPlugin(DeleteByQueryPlugin.class).build().addTransportAddress(getTransportAddress());
5453

55-
NodesInfoResponse nodeInfos = client.admin().cluster().prepareNodesInfo().get();
54+
55+
NodesInfoResponse nodeInfos = client.admin().cluster().prepareNodesInfo().get();
5656
String clusterName = nodeInfos.getClusterName().value();
5757
System.out.println(String.format("Found cluster... cluster name: %s", clusterName));
5858

0 commit comments

Comments
 (0)