dnaber      2004/10/17 04:16:39

  Modified:    contributions/analyzers/src/java/org/apache/lucene/analysis/de
                        GermanAnalyzer.java
  Log:
  improve doc for default constructor; make stop word list public but final
  
  Revision  Changes    Path
  1.3       +5 -3      
jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java
  
  Index: GermanAnalyzer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- GermanAnalyzer.java       16 Aug 2004 20:42:59 -0000      1.2
  +++ GermanAnalyzer.java       17 Oct 2004 11:16:39 -0000      1.3
  @@ -42,10 +42,11 @@
    * @version $Id$
    */
   public class GermanAnalyzer extends Analyzer {
  +  
     /**
      * List of typical german stopwords.
      */
  -  private String[] GERMAN_STOP_WORDS = {
  +  public final static String[] GERMAN_STOP_WORDS = {
       "einer", "eine", "eines", "einem", "einen",
       "der", "die", "das", "dass", "daß",
       "du", "er", "sie", "es",
  @@ -71,7 +72,8 @@
     private Set exclusionSet = new HashSet();
   
     /**
  -   * Builds an analyzer.
  +   * Builds an analyzer with the default stop words
  +   * (<code>GERMAN_STOP_WORDS</code>).
      */
     public GermanAnalyzer() {
       stopSet = StopFilter.makeStopSet(GERMAN_STOP_WORDS);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to