lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <sim...@apache.org>
Subject Re: svn commit: r1458848 - in /lucene/dev/trunk/lucene: ./ analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/
Date Wed, 20 Mar 2013 14:35:16 GMT
damned I missed some files... I will add the missing stuff in a second...

simon
> On Wed, Mar 20, 2013 at 3:21 PM,  <simonw@apache.org> wrote:
>> Author: simonw
>> Date: Wed Mar 20 14:21:52 2013
>> New Revision: 1458848
>>
>> URL: http://svn.apache.org/r1458848
>> Log:
>> LUCENE-4857: Don't unnecessarily copy stem override map in StemmerOverrideFilter
>>
>> Modified:
>>     lucene/dev/trunk/lucene/CHANGES.txt
>>     lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java
>>     lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java
>>
>> Modified: lucene/dev/trunk/lucene/CHANGES.txt
>> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1458848&r1=1458847&r2=1458848&view=diff
>> ==============================================================================
>> --- lucene/dev/trunk/lucene/CHANGES.txt (original)
>> +++ lucene/dev/trunk/lucene/CHANGES.txt Wed Mar 20 14:21:52 2013
>> @@ -154,6 +154,9 @@ Optimizations
>>  * LUCENE-4854: Speed up TermsEnum of FieldCache.getDocTermOrds.
>>    (Robert Muir)
>>
>> +* LUCENE-4857: Don't unnecessarily copy stem override map in
>> +  StemmerOverrideFilter. (Simon Willnauer)
>> +
>>  ======================= Lucene 4.2.0 =======================
>>
>>  Changes in backwards compatibility policy
>>
>> Modified: lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java
>> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java?rev=1458848&r1=1458847&r2=1458848&view=diff
>> ==============================================================================
>> --- lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java
(original)
>> +++ lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.java
Wed Mar 20 14:21:52 2013
>> @@ -24,7 +24,6 @@ import org.apache.lucene.analysis.TokenS
>>  import org.apache.lucene.analysis.tokenattributes.KeywordAttribute;
>>  import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
>>  import org.apache.lucene.analysis.util.CharArrayMap;
>> -import org.apache.lucene.util.Version;
>>
>>  /**
>>   * Provides the ability to override any {@link KeywordAttribute} aware stemmer
>> @@ -44,10 +43,10 @@ public final class StemmerOverrideFilter
>>     * so that they will not be stemmed with stemmers down the chain.
>>     * </p>
>>     */
>> -  public StemmerOverrideFilter(Version matchVersion, TokenStream input,
>> +  public StemmerOverrideFilter(TokenStream input,
>>        CharArrayMap<String> dictionary) {
>>      super(input);
>> -    this.dictionary = CharArrayMap.copy(matchVersion, dictionary);
>> +    this.dictionary = dictionary;
>>    }
>>
>>    @Override
>>
>> Modified: lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java
>> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java?rev=1458848&r1=1458847&r2=1458848&view=diff
>> ==============================================================================
>> --- lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java
(original)
>> +++ lucene/dev/trunk/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java
Wed Mar 20 14:21:52 2013
>> @@ -66,6 +66,6 @@ public class StemmerOverrideFilterFactor
>>
>>    @Override
>>    public TokenStream create(TokenStream input) {
>> -    return dictionary == null ? input : new StemmerOverrideFilter(luceneMatchVersion,
input, dictionary);
>> +    return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);
>>    }
>>  }
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message