lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/analysis/ru RussianAnalyzer.java
Date Sun, 25 Jan 2004 14:18:12 GMT
ehatcher    2004/01/25 06:18:12

  Modified:    src/java/org/apache/lucene/analysis/ru RussianAnalyzer.java
  Log:
  add no-arg ctor for RussianAnalyzer - makes it easier for tools to use this analyzer
  
  Revision  Changes    Path
  1.5       +8 -1      jakarta-lucene/src/java/org/apache/lucene/analysis/ru/RussianAnalyzer.java
  
  Index: RussianAnalyzer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/analysis/ru/RussianAnalyzer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RussianAnalyzer.java	29 Jan 2003 17:18:53 -0000	1.4
  +++ RussianAnalyzer.java	25 Jan 2004 14:18:12 -0000	1.5
  @@ -224,6 +224,13 @@
        */
       private char[] charset;
   
  +
  +    public RussianAnalyzer() {
  +        charset = RussianCharsets.UnicodeRussian;
  +        stoptable = StopFilter.makeStopTable(
  +                    makeStopWords(RussianCharsets.UnicodeRussian));
  +    }
  +
       /**
        * Builds an analyzer.
        */
  
  
  

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


Mime
View raw message