Skip to content

Commit

Permalink
Merge pull request #3 from jprante/experimental
Browse files Browse the repository at this point in the history
Lucene 3.6, simple test, more phonetic encoders
  • Loading branch information
kimchy committed Apr 22, 2012
2 parents dbd1257 + 4a7e8db commit 0ba70d1
Show file tree
Hide file tree
Showing 11 changed files with 864 additions and 272 deletions.
28 changes: 17 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@ The Phonetic Analysis plugin integrates phonetic token filter analysis with elas

In order to install the plugin, simply run: `bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/1.1.0`.

---------------------------------------------
| Phonetic Analysis Plugin | ElasticSearch |
---------------------------------------------
| master | 0.19 -> master |
---------------------------------------------
| 1.1.0 | 0.19 -> master |
---------------------------------------------
| 1.0.0 | 0.18 |
---------------------------------------------
-----------------------------------------------
| Phonetic Analysis Plugin | ElasticSearch |
-----------------------------------------------
| master | 0.19.2 -> master |
-----------------------------------------------
| 1.2.0 | 0.19.2 -> master |
-----------------------------------------------
| 1.1.0 | 0.19 |
-----------------------------------------------
| 1.0.0 | 0.18 |
-----------------------------------------------

A `phonetic` token filter that can be configured with different `encoder` types: `metaphone`, `soundex`, `caverphone`, `refined_soundex`, `double_metaphone` (uses "commons codec":http://jakarta.apache.org/commons/codec/api-release/org/apache/commons/codec/language/package-summary.html).
A `phonetic` token filter that can be configured with different `encoder` types:
`metaphone`, `doublemetaphone`, `soundex`, `refinedsoundex`,
`caverphone1`, `caverphone2`, `cologne`, `nysiis`,
`koelnerphonetik`, `haasephonetik`

The `replace` parameter (defaults to `true`) controls if the token processed should be replaced with the encoded one (set it to `true`), or added (set it to `false`).
The `replace` parameter (defaults to `true`) controls if the token processed
should be replaced with the encoded one (set it to `true`), or added (set it to `false`).

{
"index" : {
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-analysis-phonetic</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>jar</packaging>
<description>Phonetic Analysis for ElasticSearch</description>
<inceptionYear>2009</inceptionYear>
Expand All @@ -31,7 +31,7 @@
</parent>

<properties>
<elasticsearch.version>0.19.0.RC3</elasticsearch.version>
<elasticsearch.version>0.19.2</elasticsearch.version>
</properties>

<repositories>
Expand All @@ -46,9 +46,9 @@
</dependency>

<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.6</version>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-phonetic</artifactId>
<version>3.6.0</version>
<scope>compile</scope>
</dependency>

Expand Down Expand Up @@ -95,7 +95,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<version>2.12</version>
<configuration>
<includes>
<include>**/*Tests.java</include>
Expand Down
3 changes: 2 additions & 1 deletion src/main/assemblies/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<useProjectArtifact>true</useProjectArtifact>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>commons-codec:commons-codec</include>
<include>org.apache.lucene:lucene-analyzers-phonetic</include>
<include>commons-codec:commons-codec</include>
</includes>
</dependencySet>
</dependencySets>
Expand Down

This file was deleted.

100 changes: 0 additions & 100 deletions src/main/java/org/elasticsearch/index/analysis/PhoneticFilter.java

This file was deleted.

Loading

0 comments on commit 0ba70d1

Please sign in to comment.