org.dspace.search
Class DSAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.dspace.search.DSAnalyzer

public class DSAnalyzer
extends org.apache.lucene.analysis.Analyzer

Custom Lucene Analyzer that combines the standard filter, lowercase filter, stemming and stopword filters.


Constructor Summary
DSAnalyzer()
           
 
Method Summary
 int getPositionIncrementGap(String fieldName)
           
 org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAnalyzer

public DSAnalyzer()
Method Detail

tokenStream

public final org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
                                                                Reader reader)
Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer

getPositionIncrementGap

public int getPositionIncrementGap(String fieldName)
Overrides:
getPositionIncrementGap in class org.apache.lucene.analysis.Analyzer


Copyright © 2010 DuraSpace. All Rights Reserved.