lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/analysis/standard StandardAnalyzer.java
Date Mon, 10 Nov 2003 14:31:19 GMT
otis        2003/11/10 06:31:19

  Modified:    src/java/org/apache/lucene/analysis/standard
                        StandardAnalyzer.java
  Log:
  - Fixed indentation.
  
  Revision  Changes    Path
  1.6       +27 -23    jakarta-lucene/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java
  
  Index: StandardAnalyzer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StandardAnalyzer.java	20 Oct 2003 18:20:48 -0000	1.5
  +++ StandardAnalyzer.java	10 Nov 2003 14:31:19 -0000	1.6
  @@ -58,32 +58,36 @@
   import java.io.Reader;
   import java.util.Hashtable;
   
  -/** Filters {@link StandardTokenizer} with {@link StandardFilter}, {@link
  - * LowerCaseFilter} and {@link StopFilter}. */
  +/**
  + * Filters {@link StandardTokenizer} with {@link StandardFilter}, {@link
  + * LowerCaseFilter} and {@link StopFilter}.
  + *
  + * @version $Id$
  + */
   public class StandardAnalyzer extends Analyzer {
  -    private Hashtable stopTable;
  +  private Hashtable stopTable;
   
  -    /** An array containing some common English words that are usually not
  -	useful for searching. */
  -    public static final String[] STOP_WORDS = StopAnalyzer.ENGLISH_STOP_WORDS;
  +  /** An array containing some common English words that are usually not
  +  useful for searching. */
  +  public static final String[] STOP_WORDS = StopAnalyzer.ENGLISH_STOP_WORDS;
   
  -    /** Builds an analyzer. */
  -    public StandardAnalyzer() {
  -	this(STOP_WORDS);
  -    }
  +  /** Builds an analyzer. */
  +  public StandardAnalyzer() {
  +    this(STOP_WORDS);
  +  }
   
  -    /** Builds an analyzer with the given stop words. */
  -    public StandardAnalyzer(String[] stopWords) {
  -	stopTable = StopFilter.makeStopTable(stopWords);
  -    }
  +  /** Builds an analyzer with the given stop words. */
  +  public StandardAnalyzer(String[] stopWords) {
  +    stopTable = StopFilter.makeStopTable(stopWords);
  +  }
   
  -    /** Constructs a {@link StandardTokenizer} filtered by a {@link
  -	StandardFilter}, a {@link LowerCaseFilter} and a {@link StopFilter}. */
  -    public TokenStream tokenStream(String fieldName, Reader reader) {
  -	TokenStream result = new StandardTokenizer(reader);
  -	result = new StandardFilter(result);
  -	result = new LowerCaseFilter(result);
  -	result = new StopFilter(result, stopTable);
  -	return result;
  -    }
  +  /** Constructs a {@link StandardTokenizer} filtered by a {@link
  +  StandardFilter}, a {@link LowerCaseFilter} and a {@link StopFilter}. */
  +  public TokenStream tokenStream(String fieldName, Reader reader) {
  +    TokenStream result = new StandardTokenizer(reader);
  +    result = new StandardFilter(result);
  +    result = new LowerCaseFilter(result);
  +    result = new StopFilter(result, stopTable);
  +    return result;
  +  }
   }
  
  
  

---------------------------------------------------------------------
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