Class AnalyzingSentenceTokenizerFactory

  • All Implemented Interfaces:
    org.apache.lucene.analysis.util.ResourceLoaderAware

    public class AnalyzingSentenceTokenizerFactory
    extends org.apache.lucene.analysis.util.TokenizerFactory
    implements org.apache.lucene.analysis.util.ResourceLoaderAware
    Author:
    Shopping24 GmbH
    See Also:
    AnalyzingSentenceTokenizer
    • Field Summary

      • Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory

        LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.analysis.Tokenizer create​(org.apache.lucene.util.AttributeFactory factory)
      Create the tokenizer
      void inform​(org.apache.lucene.analysis.util.ResourceLoader loader)
      Reload the stop words
      • Methods inherited from class org.apache.lucene.analysis.util.TokenizerFactory

        availableTokenizers, create, findSPIName, forName, lookupClass, reloadTokenizers
      • Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory

        get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
    • Constructor Detail

      • AnalyzingSentenceTokenizerFactory

        public AnalyzingSentenceTokenizerFactory​(Map<String,​String> args)
        Tokenizer gets constructed with the configured args.
    • Method Detail

      • inform

        public void inform​(org.apache.lucene.analysis.util.ResourceLoader loader)
                    throws IOException
        Reload the stop words
        Specified by:
        inform in interface org.apache.lucene.analysis.util.ResourceLoaderAware
        Throws:
        IOException
      • create

        public org.apache.lucene.analysis.Tokenizer create​(org.apache.lucene.util.AttributeFactory factory)
        Create the tokenizer
        Specified by:
        create in class org.apache.lucene.analysis.util.TokenizerFactory