com.jalios.util.lucene
Class UnderscoreFilter

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.analysis.TokenStream
          extended by org.apache.lucene.analysis.TokenFilter
              extended by com.jalios.util.lucene.UnderscoreFilter

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

A filter that split words containg underscore (email excepted).

Version:
$Revision: 27512 $
Author:
Olivier Jaquemet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State
 
Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
UnderscoreFilter(org.apache.lucene.analysis.TokenStream input)
          Build a new UnderscoreFilter
 
Method Summary
 org.apache.lucene.analysis.Token next()
           
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, end, reset
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
getOnlyUseNewAPI, incrementToken, next, setOnlyUseNewAPI
 
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnderscoreFilter

public UnderscoreFilter(org.apache.lucene.analysis.TokenStream input)
Build a new UnderscoreFilter

Parameters:
input - the TokenStream to filter
Method Detail

next

public org.apache.lucene.analysis.Token next()
                                      throws IOException
Overrides:
next in class org.apache.lucene.analysis.TokenStream
Throws:
IOException


Copyright © 2001-2010 Jalios SA. All Rights Reserved.