mirror of https://github.com/apache/lucene.git
LUCENE-7560: make QueryBuilder.createFieldQuery not final anymore
This commit is contained in:
parent
24b5a624bb
commit
d675518da4
|
@ -96,6 +96,11 @@ Improvements
|
||||||
* LUCENE-7537: Index time sorting now supports multi-valued sorts
|
* LUCENE-7537: Index time sorting now supports multi-valued sorts
|
||||||
using selectors (MIN, MAX, etc.) (Jim Ferenczi via Mike McCandless)
|
using selectors (MIN, MAX, etc.) (Jim Ferenczi via Mike McCandless)
|
||||||
|
|
||||||
|
* LUCENE-7560: QueryBuilder.createFieldQuery is no longer final,
|
||||||
|
giving custom query parsers subclassing QueryBuilder more freedom to
|
||||||
|
control how text is analyzed and converted into a query (Matt Weber
|
||||||
|
via Mike McCandless)
|
||||||
|
|
||||||
Other
|
Other
|
||||||
|
|
||||||
* LUCENE-7546: Fixed references to benchmark wikipedia data and the Jenkins line-docs file
|
* LUCENE-7546: Fixed references to benchmark wikipedia data and the Jenkins line-docs file
|
||||||
|
|
|
@ -196,7 +196,7 @@ public class QueryBuilder {
|
||||||
* @param quoted true if phrases should be generated when terms occur at more than one position
|
* @param quoted true if phrases should be generated when terms occur at more than one position
|
||||||
* @param phraseSlop slop factor for phrase/multiphrase queries
|
* @param phraseSlop slop factor for phrase/multiphrase queries
|
||||||
*/
|
*/
|
||||||
protected final Query createFieldQuery(Analyzer analyzer, BooleanClause.Occur operator, String field, String queryText, boolean quoted, int phraseSlop) {
|
protected Query createFieldQuery(Analyzer analyzer, BooleanClause.Occur operator, String field, String queryText, boolean quoted, int phraseSlop) {
|
||||||
assert operator == BooleanClause.Occur.SHOULD || operator == BooleanClause.Occur.MUST;
|
assert operator == BooleanClause.Occur.SHOULD || operator == BooleanClause.Occur.MUST;
|
||||||
|
|
||||||
// Use the analyzer to get all the tokens, and then build an appropriate
|
// Use the analyzer to get all the tokens, and then build an appropriate
|
||||||
|
|
Loading…
Reference in New Issue