com.atlassian.jira.issue.index.analyzer
Class GermanAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by com.atlassian.jira.issue.index.analyzer.GermanAnalyzer

public class GermanAnalyzer
extends org.apache.lucene.analysis.Analyzer

Copyright (c) 2002-2004 All rights reserved. A starign copy of org.apache.lucene.analysis.de.GermanAnalyzer from Lucene 1.4.3. Need to inject the com.atlassian.jira.issue.index.analyzer.ExceptionFilter filter into the stream (the tokenStream() method).


Constructor Summary
GermanAnalyzer(boolean indexing)
           
 
Method Summary
 boolean isIndexing()
           
 void setStemExclusionTable(File exclusionlist)
          Builds an exclusionlist from the words contained in the given file.
 void setStemExclusionTable(Hashtable exclusionlist)
          Builds an exclusionlist from a Hashtable.
 void setStemExclusionTable(String[] exclusionlist)
          Builds an exclusionlist from an array of Strings.
 org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
          Creates a TokenStream which tokenizes all the text in the provided Reader.
protected  org.apache.lucene.analysis.TokenStream wrapStreamForIndexing(org.apache.lucene.analysis.TokenStream result)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GermanAnalyzer

public GermanAnalyzer(boolean indexing)
Method Detail

setStemExclusionTable

public void setStemExclusionTable(String[] exclusionlist)
Builds an exclusionlist from an array of Strings.


setStemExclusionTable

public void setStemExclusionTable(Hashtable exclusionlist)
Builds an exclusionlist from a Hashtable.


setStemExclusionTable

public void setStemExclusionTable(File exclusionlist)
                           throws IOException
Builds an exclusionlist from the words contained in the given file.

Throws:
IOException

tokenStream

public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
                                                          Reader reader)
Creates a TokenStream which tokenizes all the text in the provided Reader.

Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer
Returns:
A TokenStream build from a StandardTokenizer filtered with StandardFilter, LowerCaseFilter, StopFilter, GermanStemFilter

isIndexing

public boolean isIndexing()

wrapStreamForIndexing

protected org.apache.lucene.analysis.TokenStream wrapStreamForIndexing(org.apache.lucene.analysis.TokenStream result)


Copyright © 2002-2007 Atlassian. All Rights Reserved.