lux.index
Class MultiFieldAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.AnalyzerWrapper
          extended by lux.index.MultiFieldAnalyzer
All Implemented Interfaces:
Closeable

public final class MultiFieldAnalyzer
extends org.apache.lucene.analysis.AnalyzerWrapper

Like SolrIndexAnalyzer, but without dependencies on solr The default analyzer is the analyzer mapped to the null key. By default, null is mapped to an instance of KeywordAnalyzer (an analyzer that returns a single token for the entire field value).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
 
Constructor Summary
MultiFieldAnalyzer()
           
 
Method Summary
protected  org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
           
 void put(String fieldName, org.apache.lucene.analysis.Analyzer analyzer)
           
protected  org.apache.lucene.analysis.Analyzer.TokenStreamComponents wrapComponents(String fieldName, org.apache.lucene.analysis.Analyzer.TokenStreamComponents components)
           
 
Methods inherited from class org.apache.lucene.analysis.AnalyzerWrapper
createComponents, getOffsetGap, getPositionIncrementGap, initReader
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, tokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiFieldAnalyzer

public MultiFieldAnalyzer()
Method Detail

put

public void put(String fieldName,
                org.apache.lucene.analysis.Analyzer analyzer)

getWrappedAnalyzer

protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
Specified by:
getWrappedAnalyzer in class org.apache.lucene.analysis.AnalyzerWrapper

wrapComponents

protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents wrapComponents(String fieldName,
                                                                                   org.apache.lucene.analysis.Analyzer.TokenStreamComponents components)
Specified by:
wrapComponents in class org.apache.lucene.analysis.AnalyzerWrapper


Copyright © 2013. All Rights Reserved.