Skip to content

Commit

Permalink
Move to Elasticsearch 0.21.0.Beta1
Browse files Browse the repository at this point in the history
Due to refactoring in 0.21.x we have to update this plugin
Closes #4.
  • Loading branch information
dadoonet committed Feb 24, 2013
1 parent 7c05404 commit cf7ce9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e
--------------------------------------------------
| Stempel 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 |
--------------------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -51,8 +52,8 @@

<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-stempel</artifactId>
<version>3.6.0</version>
<artifactId>lucene-analyzers-stempel</artifactId>
<version>${lucene.version}</version>
<scope>compile</scope>
</dependency>

Expand Down Expand Up @@ -140,4 +141,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@
import org.elasticsearch.env.Environment;
import org.elasticsearch.index.Index;
import org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider;
import org.elasticsearch.index.analysis.Analysis;
import org.elasticsearch.index.settings.IndexSettings;

import java.util.Set;

/**
*/
public class PolishAnalyzerProvider extends AbstractIndexAnalyzerProvider<PolishAnalyzer> {
Expand All @@ -40,9 +37,8 @@ public class PolishAnalyzerProvider extends AbstractIndexAnalyzerProvider<Polish
@Inject
public PolishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
super(index, indexSettings, name, settings);
Set<?> stopWords = Analysis.parseStopWords(env, settings, PolishAnalyzer.getDefaultStopSet(), version);

analyzer = new PolishAnalyzer(version, stopWords);
analyzer = new PolishAnalyzer(version, PolishAnalyzer.getDefaultStopSet());
}

@Override
Expand Down

0 comments on commit cf7ce9f

Please sign in to comment.