mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
parent
8065531236
commit
2e399e5505
@ -91,7 +91,7 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
|
|||||||
private static final ParseField QUOTE_ANALYZER_FIELD = new ParseField("quote_analyzer");
|
private static final ParseField QUOTE_ANALYZER_FIELD = new ParseField("quote_analyzer");
|
||||||
private static final ParseField ALLOW_LEADING_WILDCARD_FIELD = new ParseField("allow_leading_wildcard");
|
private static final ParseField ALLOW_LEADING_WILDCARD_FIELD = new ParseField("allow_leading_wildcard");
|
||||||
private static final ParseField AUTO_GENERATE_PHRASE_QUERIES_FIELD = new ParseField("auto_generate_phrase_queries");
|
private static final ParseField AUTO_GENERATE_PHRASE_QUERIES_FIELD = new ParseField("auto_generate_phrase_queries");
|
||||||
private static final ParseField MAX_DETERMINED_STATES_FIELD = new ParseField("max_determinized_states");
|
private static final ParseField MAX_DETERMINIZED_STATES_FIELD = new ParseField("max_determinized_states");
|
||||||
private static final ParseField LOWERCASE_EXPANDED_TERMS_FIELD = new ParseField("lowercase_expanded_terms")
|
private static final ParseField LOWERCASE_EXPANDED_TERMS_FIELD = new ParseField("lowercase_expanded_terms")
|
||||||
.withAllDeprecated("Decision is now made by the analyzer");
|
.withAllDeprecated("Decision is now made by the analyzer");
|
||||||
private static final ParseField ENABLE_POSITION_INCREMENTS_FIELD = new ParseField("enable_position_increment");
|
private static final ParseField ENABLE_POSITION_INCREMENTS_FIELD = new ParseField("enable_position_increment");
|
||||||
@ -644,7 +644,7 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
|
|||||||
builder.field(QUOTE_ANALYZER_FIELD.getPreferredName(), this.quoteAnalyzer);
|
builder.field(QUOTE_ANALYZER_FIELD.getPreferredName(), this.quoteAnalyzer);
|
||||||
}
|
}
|
||||||
builder.field(AUTO_GENERATE_PHRASE_QUERIES_FIELD.getPreferredName(), this.autoGeneratePhraseQueries);
|
builder.field(AUTO_GENERATE_PHRASE_QUERIES_FIELD.getPreferredName(), this.autoGeneratePhraseQueries);
|
||||||
builder.field(MAX_DETERMINED_STATES_FIELD.getPreferredName(), this.maxDeterminizedStates);
|
builder.field(MAX_DETERMINIZED_STATES_FIELD.getPreferredName(), this.maxDeterminizedStates);
|
||||||
if (this.allowLeadingWildcard != null) {
|
if (this.allowLeadingWildcard != null) {
|
||||||
builder.field(ALLOW_LEADING_WILDCARD_FIELD.getPreferredName(), this.allowLeadingWildcard);
|
builder.field(ALLOW_LEADING_WILDCARD_FIELD.getPreferredName(), this.allowLeadingWildcard);
|
||||||
}
|
}
|
||||||
@ -757,7 +757,7 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
|
|||||||
allowLeadingWildcard = parser.booleanValue();
|
allowLeadingWildcard = parser.booleanValue();
|
||||||
} else if (AUTO_GENERATE_PHRASE_QUERIES_FIELD.match(currentFieldName)) {
|
} else if (AUTO_GENERATE_PHRASE_QUERIES_FIELD.match(currentFieldName)) {
|
||||||
autoGeneratePhraseQueries = parser.booleanValue();
|
autoGeneratePhraseQueries = parser.booleanValue();
|
||||||
} else if (MAX_DETERMINED_STATES_FIELD.match(currentFieldName)) {
|
} else if (MAX_DETERMINIZED_STATES_FIELD.match(currentFieldName)) {
|
||||||
maxDeterminizedStates = parser.intValue();
|
maxDeterminizedStates = parser.intValue();
|
||||||
} else if (LOWERCASE_EXPANDED_TERMS_FIELD.match(currentFieldName)) {
|
} else if (LOWERCASE_EXPANDED_TERMS_FIELD.match(currentFieldName)) {
|
||||||
// ignore, deprecated setting
|
// ignore, deprecated setting
|
||||||
@ -795,7 +795,7 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
|
|||||||
// ignore, deprecated setting
|
// ignore, deprecated setting
|
||||||
} else if (ALL_FIELDS_FIELD.match(currentFieldName)) {
|
} else if (ALL_FIELDS_FIELD.match(currentFieldName)) {
|
||||||
useAllFields = parser.booleanValue();
|
useAllFields = parser.booleanValue();
|
||||||
} else if (MAX_DETERMINED_STATES_FIELD.match(currentFieldName)) {
|
} else if (MAX_DETERMINIZED_STATES_FIELD.match(currentFieldName)) {
|
||||||
maxDeterminizedStates = parser.intValue();
|
maxDeterminizedStates = parser.intValue();
|
||||||
} else if (TIME_ZONE_FIELD.match(currentFieldName)) {
|
} else if (TIME_ZONE_FIELD.match(currentFieldName)) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user