Class AlfrescoStandardAnalyser


  • public class AlfrescoStandardAnalyser
    extends org.apache.lucene.analysis.Analyzer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String[] STOP_WORDS
      An array containing some common English words that are usually not useful for searching.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.analysis.TokenStream tokenStream​(java.lang.String fieldName, java.io.Reader reader)
      Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter and a StopFilter.
      • Methods inherited from class org.apache.lucene.analysis.Analyzer

        close, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STOP_WORDS

        public static final java.lang.String[] STOP_WORDS
        An array containing some common English words that are usually not useful for searching.
    • Constructor Detail

      • AlfrescoStandardAnalyser

        public AlfrescoStandardAnalyser()
        Builds an analyzer.
      • AlfrescoStandardAnalyser

        public AlfrescoStandardAnalyser​(java.lang.String[] stopWords)
        Builds an analyzer with the given stop words.
    • Method Detail

      • tokenStream

        public org.apache.lucene.analysis.TokenStream tokenStream​(java.lang.String fieldName,
                                                                  java.io.Reader reader)
        Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter and a StopFilter.
        Specified by:
        tokenStream in class org.apache.lucene.analysis.Analyzer