Skip to content

Commit 942b87b

Browse files
committed
Move to Elasticsearch 0.21.0.Beta1
Due to refactoring in 0.21.x we have to update this plugin Closes elastic#24.
1 parent eba4da7 commit 942b87b

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e
88
------------------------------------------------------
99
| Attachment Mapper Plugin | ElasticSearch | Tika |
1010
------------------------------------------------------
11-
| master | 0.20 -> master | 1.2 |
11+
| master | 0.21 -> master | 1.2 |
1212
------------------------------------------------------
13-
| 1.6.0 | 0.19 -> master | 1.2 |
13+
| 1.6.0 | 0.19 -> 0.20 | 1.2 |
1414
------------------------------------------------------
15-
| 1.5.0 | 0.19 -> master | 1.2 |
15+
| 1.5.0 | 0.19 -> 0.20 | 1.2 |
1616
------------------------------------------------------
17-
| 1.4.0 | 0.19 -> master | 1.1 |
17+
| 1.4.0 | 0.19 -> 0.20 | 1.1 |
1818
------------------------------------------------------
19-
| 1.3.0 | 0.19 -> master | 1.0 |
19+
| 1.3.0 | 0.19 -> 0.20 | 1.0 |
2020
------------------------------------------------------
21-
| 1.2.0 | 0.19 -> master | 1.0 |
21+
| 1.2.0 | 0.19 -> 0.20 | 1.0 |
2222
------------------------------------------------------
23-
| 1.1.0 | 0.19 -> master | |
23+
| 1.1.0 | 0.19 -> 0.20 | |
2424
------------------------------------------------------
2525
| 1.0.0 | 0.18 | |
2626
------------------------------------------------------

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</parent>
3131

3232
<properties>
33-
<elasticsearch.version>0.20.1</elasticsearch.version>
33+
<elasticsearch.version>0.21.0.Beta1-SNAPSHOT</elasticsearch.version>
3434
</properties>
3535

3636
<repositories>
@@ -159,4 +159,4 @@
159159
</plugin>
160160
</plugins>
161161
</build>
162-
</project>
162+
</project>

src/test/java/org/elasticsearch/index/mapper/xcontent/SimpleAttachmentMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class SimpleAttachmentMapperTests {
4646

4747
@BeforeClass
4848
public void setupMapperParser() {
49-
mapperParser = new DocumentMapperParser(new Index("test"), new AnalysisService(new Index("test")));
49+
mapperParser = new DocumentMapperParser(new Index("test"), new AnalysisService(new Index("test")), null, null);
5050
mapperParser.putTypeParser(AttachmentMapper.CONTENT_TYPE, new AttachmentMapper.TypeParser());
5151
}
5252

src/test/java/org/elasticsearch/plugin/mapper/attachments/test/SimpleAttachmentIntegrationTests.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public void createIndex() {
6868
node.client().admin().indices().create(createIndexRequest("test").settings(settingsBuilder().put("index.numberOfReplicas", 0))).actionGet();
6969
logger.info("Running Cluster Health");
7070
ClusterHealthResponse clusterHealth = node.client().admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet();
71-
logger.info("Done Cluster Health, status " + clusterHealth.status());
72-
assertThat(clusterHealth.timedOut(), equalTo(false));
73-
assertThat(clusterHealth.status(), equalTo(ClusterHealthStatus.GREEN));
71+
logger.info("Done Cluster Health, status " + clusterHealth.getStatus());
72+
assertThat(clusterHealth.isTimedOut(), equalTo(false));
73+
assertThat(clusterHealth.getStatus(), equalTo(ClusterHealthStatus.GREEN));
7474
}
7575

7676
@AfterMethod
@@ -91,10 +91,10 @@ public void testSimpleAttachment() throws Exception {
9191
node.client().admin().indices().refresh(refreshRequest()).actionGet();
9292

9393
CountResponse countResponse = node.client().count(countRequest("test").query(fieldQuery("file.title", "test document"))).actionGet();
94-
assertThat(countResponse.count(), equalTo(1l));
94+
assertThat(countResponse.getCount(), equalTo(1l));
9595

9696
countResponse = node.client().count(countRequest("test").query(fieldQuery("file", "tests the ability"))).actionGet();
97-
assertThat(countResponse.count(), equalTo(1l));
97+
assertThat(countResponse.getCount(), equalTo(1l));
9898
}
9999

100100
@Test
@@ -110,10 +110,10 @@ public void testSimpleAttachmentContentLengthLimit() throws Exception {
110110
node.client().admin().indices().refresh(refreshRequest()).actionGet();
111111

112112
CountResponse countResponse = node.client().count(countRequest("test").query(fieldQuery("file", "BeforeLimit"))).actionGet();
113-
assertThat(countResponse.count(), equalTo(1l));
113+
assertThat(countResponse.getCount(), equalTo(1l));
114114

115115
countResponse = node.client().count(countRequest("test").query(fieldQuery("file", "AfterLimit"))).actionGet();
116-
assertThat(countResponse.count(), equalTo(0l));
116+
assertThat(countResponse.getCount(), equalTo(0l));
117117
}
118118

119119
@Test
@@ -129,10 +129,10 @@ public void testSimpleAttachmentNoContentLengthLimit() throws Exception {
129129
node.client().admin().indices().refresh(refreshRequest()).actionGet();
130130

131131
CountResponse countResponse = node.client().count(countRequest("test").query(fieldQuery("file", "Begin"))).actionGet();
132-
assertThat(countResponse.count(), equalTo(1l));
132+
assertThat(countResponse.getCount(), equalTo(1l));
133133

134134
countResponse = node.client().count(countRequest("test").query(fieldQuery("file", "End"))).actionGet();
135-
assertThat(countResponse.count(), equalTo(1l));
135+
assertThat(countResponse.getCount(), equalTo(1l));
136136
}
137137

138138
/**

0 commit comments

Comments
 (0)