com.atlassian.confluence.search.didyoumean.lucene
Class WordFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
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
|
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 |
log
public static final org.apache.log4j.Logger log
WordFilter
public WordFilter(org.apache.lucene.analysis.TokenStream input)
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-2009 Atlassian Pty Ltd. All Rights Reserved.