From 180ff531e1a84b86a44e1c86aa1fea433ef9a525 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Sat, 18 Oct 2008 18:38:24 +0000 Subject: [PATCH] SOLR-813: Adding DoubleMetaphone Filter and Factory git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@705903 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 6 +- example/solr/conf/schema.xml | 8 ++ .../solr/analysis/DoubleMetaphoneFilter.java | 90 +++++++++++++++ .../DoubleMetaphoneFilterFactory.java | 49 ++++++++ .../DoubleMetaphoneFilterFactoryTest.java | 71 ++++++++++++ .../analysis/DoubleMetaphoneFilterTest.java | 109 ++++++++++++++++++ 6 files changed, 332 insertions(+), 1 deletion(-) create mode 100644 src/java/org/apache/solr/analysis/DoubleMetaphoneFilter.java create mode 100644 src/java/org/apache/solr/analysis/DoubleMetaphoneFilterFactory.java create mode 100644 src/test/org/apache/solr/analysis/DoubleMetaphoneFilterFactoryTest.java create mode 100644 src/test/org/apache/solr/analysis/DoubleMetaphoneFilterTest.java diff --git a/CHANGES.txt b/CHANGES.txt index c0d254a14f3..f395a64ad4a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -43,7 +43,7 @@ New Features See http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/index/IndexDeletionPolicy.html (yonik, Noble Paul, Akshay Ukey via shalin) - 3. SOLR-657: Replace deprecated calls with the non-deprecated equivalents + 3. SOLR-657: Replace many deprecated calls with non-deprecated equivalents (Lars Kotthoff via ryan) 4. SOLR-658: Allow Solr to load index from arbitrary directory in dataDir @@ -56,6 +56,10 @@ New Features 6. SOLR-670: Add support for rollbacks in UpdateHandler. This allows user to rollback all changes since the last commit. (Noble Paul, koji via shalin) + 7. SOLR-813: Adding DoubleMetaphone Filter and Factory. Similar to the PhoneticFilter, + but this uses DoubleMetaphone specific calls (including alternate encoding) + (Todd Feak via ryan) + Optimizations ---------------------- diff --git a/example/solr/conf/schema.xml b/example/solr/conf/schema.xml index 3f59fef3acc..873a186b359 100755 --- a/example/solr/conf/schema.xml +++ b/example/solr/conf/schema.xml @@ -247,6 +247,14 @@ /> + + + + + + + +