Class LuceneQueryParserFactoryProvider.DefaultParserFactory

java.lang.Object
com.apple.foundationdb.record.lucene.search.LuceneQueryParserFactoryProvider.DefaultParserFactory
All Implemented Interfaces:
LuceneQueryParserFactory
Enclosing class:
LuceneQueryParserFactoryProvider

public static class LuceneQueryParserFactoryProvider.DefaultParserFactory extends Object implements LuceneQueryParserFactory
The default implementation is a ConfigAwareQueryParser with the default list of stop words. This can be overridden by extenders, e.g. to provide another list of stop words.
  • Constructor Details

    • DefaultParserFactory

      public DefaultParserFactory()
  • Method Details

    • createQueryParser

      public org.apache.lucene.queryparser.classic.QueryParser createQueryParser(String field, org.apache.lucene.analysis.Analyzer analyzer, @Nonnull Map<String,org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfig)
      Specified by:
      createQueryParser in interface LuceneQueryParserFactory
    • createMultiFieldQueryParser

      @Nonnull public org.apache.lucene.queryparser.classic.QueryParser createMultiFieldQueryParser(String[] fields, org.apache.lucene.analysis.Analyzer analyzer, @Nonnull Map<String,org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfig)
      Specified by:
      createMultiFieldQueryParser in interface LuceneQueryParserFactory
    • getStopWords

      @Nonnull protected org.apache.lucene.analysis.CharArraySet getStopWords()