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 Summary
Modifier and TypeMethodDescriptiondefault org.apache.lucene.search.QueryaddSlop(org.apache.lucene.search.Query q, int slop) default org.apache.lucene.search.QueryattemptConstructFieldQueryWithPointsConfig(String field, String queryText, boolean quoted) default org.apache.lucene.search.QueryattemptConstructRangeQueryWithPointsConfig(String field, String part1, String part2, boolean startInclusive, boolean endInclusive) org.apache.lucene.search.QueryconstructFieldWithoutPointsConfig(String field, String queryText, boolean quoted) org.apache.lucene.search.QueryconstructRangeQueryWithoutPointsConfig(String field, String part1, String part2, boolean startInclusive, boolean endInclusive) org.apache.lucene.queryparser.classic.Token
-
Method Details
-
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)
-