org.hibernate.search.util.impl
Class PassThroughAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.hibernate.search.util.impl.PassThroughAnalyzer
- All Implemented Interfaces:
- Closeable
public final class PassThroughAnalyzer
- extends org.apache.lucene.analysis.Analyzer
Analyzer that applies no operation whatsoever to the flux
This is useful for queries operating on non tokenized fields.
TODO there is probably a way to make that much more efficient by
reimplementing TokenStream to take the Reader and pass through the flux as a single token
- Author:
- Emmanuel Bernard
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassThroughAnalyzer
public PassThroughAnalyzer()
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved