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

java.lang.Object
  extended byorg.apache.lucene.analysis.Analyzer
      extended bycom.atlassian.jira.issue.index.analyzer.AbstractLanguageAnalyser
          extended bycom.atlassian.jira.issue.index.analyzer.GermanAnalyzer

public class GermanAnalyzer
extends AbstractLanguageAnalyser

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
 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.
 
Methods inherited from class com.atlassian.jira.issue.index.analyzer.AbstractLanguageAnalyser
isIndexing, wrapStreamForIndexing
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
tokenStream
 
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.

Returns:
A TokenStream build from a StandardTokenizer filtered with StandardFilter, LowerCaseFilter, StopFilter, GermanStemFilter


Copyright © 2002-2006 Atlassian. All Rights Reserved.