File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/test/java/org/nlpcn/es4sql Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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 >
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 >
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 >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments