com.atlassian.confluence.search.didyoumean.lucene
Class WordFilter

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.TokenFilter
          extended by com.atlassian.confluence.search.didyoumean.lucene.WordFilter

public class WordFilter
extends org.apache.lucene.analysis.TokenFilter

Filter that removes any tokens that does not resemble a word. A word can only consist of alphabet characters a-z. Although, there are one letter words, this filter currently enforces a minimum of two characters.


Field Summary
static org.apache.log4j.Logger log
          Deprecated. 
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
WordFilter(org.apache.lucene.analysis.TokenStream input)
           
 
Method Summary
 org.apache.lucene.analysis.Token next()
           
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

@Deprecated
public static final org.apache.log4j.Logger log
Deprecated. 
Constructor Detail

WordFilter

public WordFilter(org.apache.lucene.analysis.TokenStream input)
Method Detail

next

public org.apache.lucene.analysis.Token next()
                                      throws java.io.IOException
Specified by:
next in class org.apache.lucene.analysis.TokenStream
Throws:
java.io.IOException


Copyright © 2003-2010 Atlassian. All Rights Reserved.