Skip to content

Commit 90fac17

Browse files
committed
Query refactoring: MatchQueryBuilder
This add equals, hashcode, read/write methods, separates toQuery and JSON parsing and adds tests. Also moving MatchQueryBuilder.Type to MatchQuery to MatchQuery, adding serialization and hashcode, equals there. Relates to #10217
1 parent 5cc423a commit 90fac17

File tree

11 files changed

+662
-174
lines changed

11 files changed

+662
-174
lines changed

core/src/main/java/org/apache/lucene/queries/ExtendedCommonTermsQuery.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ public String getLowFreqMinimumNumberShouldMatchSpec() {
7676
return lowFreqMinNumShouldMatchSpec;
7777
}
7878

79+
public float getMaxTermFrequency() {
80+
return this.maxTermFrequency;
81+
}
82+
7983
@Override
8084
protected Query newTermQuery(Term term, TermContext context) {
8185
if (fieldType == null) {

0 commit comments

Comments
 (0)