magoffin.matt.ma2.lucene
Class UserTagTokenizer
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
org.apache.lucene.analysis.CharTokenizer
magoffin.matt.ma2.lucene.UserTagTokenizer
public class UserTagTokenizer
- extends org.apache.lucene.analysis.CharTokenizer
Lucene tokenizer for UserTag values.
Splits on whitespace and commas, and normalizes to lower case.
- Version:
- $Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
- Author:
- Matt Magoffin (spamsqr@msqr.us)
Fields inherited from class org.apache.lucene.analysis.Tokenizer |
input |
Constructor Summary |
UserTagTokenizer(java.io.Reader reader)
Construct from a reader. |
Methods inherited from class org.apache.lucene.analysis.CharTokenizer |
next |
Methods inherited from class org.apache.lucene.analysis.Tokenizer |
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 |
UserTagTokenizer
public UserTagTokenizer(java.io.Reader reader)
- Construct from a reader.
- Parameters:
reader
- the reader
isTokenChar
protected boolean isTokenChar(char c)
- Specified by:
isTokenChar
in class org.apache.lucene.analysis.CharTokenizer
normalize
protected char normalize(char c)
- Overrides:
normalize
in class org.apache.lucene.analysis.CharTokenizer