magoffin.matt.ma2.lucene
Class UserTagTokenizer

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.Tokenizer
          extended by org.apache.lucene.analysis.CharTokenizer
              extended by 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)

Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Tokenizer
input
 
Constructor Summary
UserTagTokenizer(java.io.Reader reader)
          Construct from a reader.
 
Method Summary
protected  boolean isTokenChar(char c)
           
protected  char normalize(char c)
           
 
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
 

Constructor Detail

UserTagTokenizer

public UserTagTokenizer(java.io.Reader reader)
Construct from a reader.

Parameters:
reader - the reader
Method Detail

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