Skip to content

Commit 901573f

Browse files
committed
Merge pull request #92 from vvanholl/master
Update to Elasticsearch 2.1.1
2 parents 4c0adb9 + c653e53 commit 901573f

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ When importing archive files again, this information is reapplied.
2727

2828
| Elasticsearch | Plugin | Release date |
2929
| -------------- | -------------- | ------------ |
30-
| 2.1.0 | 2.2.0.0 | Dec 7, 2015 |
30+
| 2.1.1 | 2.1.1.0 | Dec 30, 2015 |
31+
| 2.1.0 | 2.1.0.0 | Dec 7, 2015 |
3132
| 2.0.0 | 2.0.0.0 | Nov 14, 2015 |
3233
| 2.0.0-rc1 | 2.0.0-rc1.0 | Oct 12, 2015 |
3334

3435
For older releases and 1.x versions, see the repective branches.
3536

3637
## Installation 2.x
3738

38-
./bin/plugin install http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-knapsack/2.1.0.0/elasticsearch-knapsack-2.1.0.0-plugin.zip
39+
./bin/plugin install http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-knapsack/2.1.1.0/elasticsearch-knapsack-2.1.1.0-plugin.zip
3940

4041
Do not forget to restart the node after installation.
4142

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>org.xbib.elasticsearch.plugin</groupId>
99
<artifactId>elasticsearch-knapsack</artifactId>
10-
<version>2.1.0.0</version>
10+
<version>2.1.1.0</version>
1111

1212
<packaging>jar</packaging>
1313

@@ -58,7 +58,7 @@
5858
<github.global.server>github</github.global.server>
5959
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6060
<java.compiler.version>1.7</java.compiler.version>
61-
<elasticsearch.version>2.1.0</elasticsearch.version>
61+
<elasticsearch.version>2.1.1</elasticsearch.version>
6262
</properties>
6363

6464
<dependencies>

src/test/java/org/elasticsearch/node/MockNode.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33

44
import org.elasticsearch.Version;
55
import org.elasticsearch.common.settings.Settings;
6+
import org.elasticsearch.env.Environment;
67
import org.elasticsearch.plugins.Plugin;
78

89
import java.util.Collection;
910

1011
public class MockNode extends Node {
1112

12-
public MockNode(Settings settings, Collection<Class<? extends Plugin>> classpathPlugins) {
13-
super(settings, Version.CURRENT, classpathPlugins);
13+
public MockNode(Environment tmpEnv, Collection<Class<? extends Plugin>> classpathPlugins) {
14+
super(tmpEnv, Version.CURRENT, classpathPlugins);
1415
}
1516

1617
}

src/test/java/org/xbib/elasticsearch/util/NodeTestUtils.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.elasticsearch.common.settings.Settings;
1414
import org.elasticsearch.common.transport.InetSocketTransportAddress;
1515
import org.elasticsearch.common.unit.TimeValue;
16+
import org.elasticsearch.env.Environment;
1617
import org.elasticsearch.node.MockNode;
1718
import org.elasticsearch.node.Node;
1819
import org.elasticsearch.plugins.Plugin;
@@ -146,7 +147,8 @@ public static Node createNode() {
146147
//Node node = NodeBuilder.nodeBuilder().settings(nodeSettings).local(true).build().start();
147148
Set<Class<? extends Plugin>> plugins = new HashSet<>();
148149
plugins.add(KnapsackPlugin.class);
149-
Node node = new MockNode(nodeSettings, plugins);
150+
Environment environment = new Environment(nodeSettings);
151+
Node node = new MockNode(environment, plugins);
150152
node.start();
151153
return node;
152154
}
@@ -196,7 +198,8 @@ private Node buildNode(String id) throws IOException {
196198
// ES 2.1 renders NodeBuilder as useless
197199
Set<Class<? extends Plugin>> plugins = new HashSet<>();
198200
plugins.add(KnapsackPlugin.class);
199-
Node node = new MockNode(nodeSettings, plugins);
201+
Environment environment = new Environment(nodeSettings);
202+
Node node = new MockNode(environment, plugins);
200203
AbstractClient client = (AbstractClient)node.client();
201204
nodes.put(id, node);
202205
clients.put(id, client);

0 commit comments

Comments
 (0)