org.hibernate.search.util.impl
Class PassThroughAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by 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

Constructor Summary
PassThroughAnalyzer()
           
 
Method Summary
 org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
           
 
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
 

Constructor Detail

PassThroughAnalyzer

public PassThroughAnalyzer()
Method Detail

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