Move to Elasticsearch 0.21.0.Beta1
Due to refactoring in 0.21.x we have to update this plugin Closes #2.
This commit is contained in:
parent
e78e320478
commit
d080a75e7d
|
@ -8,11 +8,11 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e
|
|||
--------------------------------------------------
|
||||
| Smart Chinese Analysis Plugin | ElasticSearch |
|
||||
--------------------------------------------------
|
||||
| master | 0.19 -> master |
|
||||
| master | 0.21 -> master |
|
||||
--------------------------------------------------
|
||||
| 1.2.0 | 0.19 -> master |
|
||||
| 1.2.0 | 0.19 -> 0.20 |
|
||||
--------------------------------------------------
|
||||
| 1.1.0 | 0.19 -> master |
|
||||
| 1.1.0 | 0.19 -> 0.20 |
|
||||
--------------------------------------------------
|
||||
| 1.0.0 | 0.18 |
|
||||
--------------------------------------------------
|
||||
|
|
9
pom.xml
9
pom.xml
|
@ -31,7 +31,8 @@
|
|||
</parent>
|
||||
|
||||
<properties>
|
||||
<elasticsearch.version>0.19.3</elasticsearch.version>
|
||||
<elasticsearch.version>0.21.0.Beta1-SNAPSHOT</elasticsearch.version>
|
||||
<lucene.version>4.1.0</lucene.version>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
|
@ -51,8 +52,8 @@
|
|||
|
||||
<dependency>
|
||||
<groupId>org.apache.lucene</groupId>
|
||||
<artifactId>lucene-smartcn</artifactId>
|
||||
<version>3.6.0</version>
|
||||
<artifactId>lucene-analyzers-smartcn</artifactId>
|
||||
<version>${lucene.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -140,4 +141,4 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
@ -27,8 +27,6 @@ import org.elasticsearch.env.Environment;
|
|||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.settings.IndexSettings;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class SmartChineseAnalyzerProvider extends AbstractIndexAnalyzerProvider<SmartChineseAnalyzer> {
|
||||
|
@ -38,9 +36,8 @@ public class SmartChineseAnalyzerProvider extends AbstractIndexAnalyzerProvider<
|
|||
@Inject
|
||||
public SmartChineseAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
|
||||
super(index, indexSettings, name, settings);
|
||||
Set<?> stopWords = Analysis.parseStopWords(env, settings, SmartChineseAnalyzer.getDefaultStopSet(), version);
|
||||
|
||||
analyzer = new SmartChineseAnalyzer(version, stopWords);
|
||||
analyzer = new SmartChineseAnalyzer(version, SmartChineseAnalyzer.getDefaultStopSet());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue