lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r711737 - in /lucene/solr/trunk: CHANGES.txt src/java/org/apache/solr/analysis/DoubleMetaphoneFilterFactory.java src/java/org/apache/solr/analysis/PhoneticFilterFactory.java src/java/org/apache/solr/analysis/TokenFilterFactory.java
Date Wed, 05 Nov 2008 23:06:08 GMT
Author: ehatcher
Date: Wed Nov  5 15:06:08 2008
New Revision: 711737

URL: http://svn.apache.org/viewvc?rev=711737&view=rev
Log:
SOLR-837: Fix inject parameter on PhoneticFilterFactory and DoubleMetaphoneFilterFactory

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/java/org/apache/solr/analysis/DoubleMetaphoneFilterFactory.java
    lucene/solr/trunk/src/java/org/apache/solr/analysis/PhoneticFilterFactory.java
    lucene/solr/trunk/src/java/org/apache/solr/analysis/TokenFilterFactory.java

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=711737&r1=711736&r2=711737&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Wed Nov  5 15:06:08 2008
@@ -99,6 +99,9 @@
     tokens that started with delimiters, leading to incorrect highlighting.
     (Stefan Oestreicher via yonik)
 
+ 6. SOLR-837: Fix inject parameter on PhoneticFilterFactory and DoubleMetaphoneFilterFactory.
+    (ehatcher)
+
 
 Other Changes
 ----------------------

Modified: lucene/solr/trunk/src/java/org/apache/solr/analysis/DoubleMetaphoneFilterFactory.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/analysis/DoubleMetaphoneFilterFactory.java?rev=711737&r1=711736&r2=711737&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/analysis/DoubleMetaphoneFilterFactory.java
(original)
+++ lucene/solr/trunk/src/java/org/apache/solr/analysis/DoubleMetaphoneFilterFactory.java
Wed Nov  5 15:06:08 2008
@@ -34,9 +34,7 @@
   public void init(Map<String, String> args) {
     super.init(args);
 
-    if (args.get(INJECT) != null) {
-      inject = Boolean.getBoolean(args.get(INJECT));
-    }
+    inject = getBoolean(INJECT, true);
 
     if (args.get(MAX_CODE_LENGTH) != null) {
       maxCodeLength = Integer.parseInt(args.get(MAX_CODE_LENGTH));

Modified: lucene/solr/trunk/src/java/org/apache/solr/analysis/PhoneticFilterFactory.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/analysis/PhoneticFilterFactory.java?rev=711737&r1=711736&r2=711737&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/analysis/PhoneticFilterFactory.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/analysis/PhoneticFilterFactory.java Wed Nov
 5 15:06:08 2008
@@ -63,10 +63,8 @@
   @Override
   public void init(Map<String,String> args) {
     super.init( args );
-    
-    if( args.get( "inject" ) != null ) {
-      inject = Boolean.getBoolean( args.get( INJECT ) );
-    }
+
+    inject = getBoolean(INJECT, true);
     
     String name = args.get( ENCODER );
     if( name == null ) {

Modified: lucene/solr/trunk/src/java/org/apache/solr/analysis/TokenFilterFactory.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/analysis/TokenFilterFactory.java?rev=711737&r1=711736&r2=711737&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/analysis/TokenFilterFactory.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/analysis/TokenFilterFactory.java Wed Nov  5
15:06:08 2008
@@ -50,7 +50,7 @@
 public interface TokenFilterFactory {
   /** <code>init</code> will be called just once, immediately after creation.
    * <p>The args are user-level initialization parameters that
-   * may be specified when declaring a the factory in the
+   * may be specified when declaring the factory in the
    * schema.xml
    */
   public void init(Map<String,String> args);



Mime
View raw message