Interface ConfigAwareQueryParser

All Known Implementing Classes:
LuceneOptimizedMultiFieldQueryParser, LuceneOptimizedMultiFieldStopWordsQueryParser, LuceneOptimizedQueryParser, LuceneOptimizedStopWordsQueryParser

public interface ConfigAwareQueryParser
a mixin interface for common functionality of parsers, it provides the ability to construct queries having typing information in hand via PointsConfig.
  • Method Details

    • getPointsConfig

      @Nonnull Map<String,org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> getPointsConfig()
    • constructFieldWithoutPointsConfig

      @Nonnull org.apache.lucene.search.Query constructFieldWithoutPointsConfig(String field, String queryText, boolean quoted) throws org.apache.lucene.queryparser.classic.ParseException
      Throws:
      org.apache.lucene.queryparser.classic.ParseException
    • nextToken

      @Nonnull org.apache.lucene.queryparser.classic.Token nextToken()
    • attemptConstructFieldQueryWithPointsConfig

      @Nonnull default org.apache.lucene.search.Query attemptConstructFieldQueryWithPointsConfig(String field, String queryText, boolean quoted) throws org.apache.lucene.queryparser.classic.ParseException
      Throws:
      org.apache.lucene.queryparser.classic.ParseException
    • constructRangeQueryWithoutPointsConfig

      @Nonnull org.apache.lucene.search.Query constructRangeQueryWithoutPointsConfig(String field, String part1, String part2, boolean startInclusive, boolean endInclusive) throws org.apache.lucene.queryparser.classic.ParseException
      Throws:
      org.apache.lucene.queryparser.classic.ParseException
    • attemptConstructRangeQueryWithPointsConfig

      @Nonnull default org.apache.lucene.search.Query attemptConstructRangeQueryWithPointsConfig(String field, String part1, String part2, boolean startInclusive, boolean endInclusive) throws org.apache.lucene.queryparser.classic.ParseException
      Throws:
      org.apache.lucene.queryparser.classic.ParseException
    • addSlop

      @Nonnull default org.apache.lucene.search.Query addSlop(org.apache.lucene.search.Query q, int slop)