Skip to content

Commit 45dfe9a

Browse files
committed
Update to elasticsearch 1.3.0
Closes #21. (cherry picked from commit a1b37f6)
1 parent f215ab0 commit 45dfe9a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ Smart Chinese Analysis for Elasticsearch
33

44
The Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.
55

6-
In order to install the plugin, simply run: `bin/plugin -install elasticsearch/elasticsearch-analysis-smartcn/2.0.0`.
6+
In order to install the plugin, simply run: `bin/plugin -install elasticsearch/elasticsearch-analysis-smartcn/2.1.0`.
77

88
* For master elasticsearch versions, look at [master branch](https://github.com/elasticsearch/elasticsearch-analysis-smartcn/tree/master).
9-
* For 1.2.x elasticsearch versions, look at [es-1.1 branch](https://github.com/elasticsearch/elasticsearch-analysis-smartcn/tree/es-1.2).
9+
* For 1.3.x elasticsearch versions, look at [es-1.3 branch](https://github.com/elasticsearch/elasticsearch-analysis-smartcn/tree/es-1.3).
10+
* For 1.2.x elasticsearch versions, look at [es-1.2 branch](https://github.com/elasticsearch/elasticsearch-analysis-smartcn/tree/es-1.2).
1011
* For 1.1.x elasticsearch versions, look at [es-1.1 branch](https://github.com/elasticsearch/elasticsearch-analysis-smartcn/tree/es-1.1).
1112
* For 1.0.x elasticsearch versions, look at [es-1.0 branch](https://github.com/elasticsearch/elasticsearch-analysis-smartcn/tree/es-1.0).
1213
* For 0.90.x elasticsearch versions, look at [es-0.90 branch](https://github.com/elasticsearch/elasticsearch-analysis-smartcn/tree/es-0.90).

src/test/java/org/elasticsearch/index/analysis/SimpleSmartChineseIntegrationTests.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
package org.elasticsearch.index.analysis;
2121

2222
import org.elasticsearch.action.admin.indices.analyze.AnalyzeResponse;
23+
import org.elasticsearch.common.settings.ImmutableSettings;
24+
import org.elasticsearch.common.settings.Settings;
25+
import org.elasticsearch.plugins.PluginsService;
2326
import org.elasticsearch.test.ElasticsearchIntegrationTest;
2427
import org.junit.Test;
2528

@@ -30,6 +33,14 @@
3033
@ElasticsearchIntegrationTest.ClusterScope(numDataNodes = 1, scope = ElasticsearchIntegrationTest.Scope.SUITE)
3134
public class SimpleSmartChineseIntegrationTests extends ElasticsearchIntegrationTest {
3235

36+
@Override
37+
protected Settings nodeSettings(int nodeOrdinal) {
38+
return ImmutableSettings.builder()
39+
.put(super.nodeSettings(nodeOrdinal))
40+
.put("plugins." + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true)
41+
.build();
42+
}
43+
3344
@Test
3445
public void testSmartcnAnalyzer() throws ExecutionException, InterruptedException {
3546
AnalyzeResponse response = client().admin().indices()

0 commit comments

Comments
 (0)