Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
66ce0bc
Initial commit
svilen-mihaylov-elastic Feb 5, 2025
e813749
Update x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/…
svilen-mihaylov-elastic Feb 12, 2025
638cc12
Fix test
svilen-mihaylov-elastic Feb 12, 2025
372e99c
Extend test
svilen-mihaylov-elastic Feb 12, 2025
1e8291e
Remove comment
svilen-mihaylov-elastic Feb 12, 2025
a18f16b
Update docs/changelog/121787.yaml
svilen-mihaylov-elastic Feb 12, 2025
0577ccb
Implement equals and hashcode
svilen-mihaylov-elastic Feb 13, 2025
bd48317
Merge branch 'svilen/120933' of https://github.com/svilen-mihaylov-el…
svilen-mihaylov-elastic Feb 13, 2025
2468aec
Fix test
svilen-mihaylov-elastic Feb 14, 2025
dfe4b1d
Merge branch 'main' into svilen/120933
svilen-mihaylov-elastic Feb 18, 2025
5863904
Fix merge
svilen-mihaylov-elastic Feb 18, 2025
d11f0a4
Merge branch 'main' into svilen/120933
svilen-mihaylov-elastic Feb 18, 2025
a33cb4d
Add csv test
svilen-mihaylov-elastic Feb 20, 2025
f248911
Fix test
svilen-mihaylov-elastic Feb 20, 2025
518e6e9
Merge branch 'main' into svilen/120933
svilen-mihaylov-elastic Mar 3, 2025
a257e70
Ignored folding and serialization tests for qstr
svilen-mihaylov-elastic Mar 3, 2025
9960821
Update test
svilen-mihaylov-elastic Mar 3, 2025
f735c2e
Merge branch 'main' into svilen/120933
svilen-mihaylov-elastic Mar 3, 2025
97466dc
Fix
svilen-mihaylov-elastic Mar 3, 2025
a8e2733
Add qstr options capability
svilen-mihaylov-elastic Mar 3, 2025
42dc6e9
Fixes
svilen-mihaylov-elastic Mar 4, 2025
e6af95e
More fixes
svilen-mihaylov-elastic Mar 4, 2025
c539908
Merge branch 'main' into svilen/120933
svilen-mihaylov-elastic Mar 4, 2025
af2df81
Add more defaults to descriptions
svilen-mihaylov-elastic Mar 5, 2025
be64140
Merge branch 'main' into svilen/120933
svilen-mihaylov-elastic Mar 5, 2025
2c10ee9
Update docs/changelog/121787.yaml
svilen-mihaylov-elastic Mar 6, 2025
f72e524
Merge branch 'main' into svilen/120933
svilen-mihaylov-elastic Mar 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/changelog/121787.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 121787
summary: Added optional parameters to QSTR ES|QL function
area: Search
type: feature
issues:
- 120933
29 changes: 29 additions & 0 deletions docs/reference/esql/functions/functionNamedParams/qstr.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions docs/reference/esql/functions/kibana/definition/qstr.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,32 @@ public final class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStr
public static final MultiMatchQueryBuilder.Type DEFAULT_TYPE = MultiMatchQueryBuilder.Type.BEST_FIELDS;
public static final boolean DEFAULT_FUZZY_TRANSPOSITIONS = FuzzyQuery.defaultTranspositions;

private static final ParseField QUERY_FIELD = new ParseField("query");
private static final ParseField FIELDS_FIELD = new ParseField("fields");
private static final ParseField DEFAULT_FIELD_FIELD = new ParseField("default_field");
private static final ParseField DEFAULT_OPERATOR_FIELD = new ParseField("default_operator");
private static final ParseField ANALYZER_FIELD = new ParseField("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 MAX_DETERMINIZED_STATES_FIELD = new ParseField("max_determinized_states");
private static final ParseField ENABLE_POSITION_INCREMENTS_FIELD = new ParseField("enable_position_increments");
private static final ParseField ESCAPE_FIELD = new ParseField("escape");
private static final ParseField FUZZY_PREFIX_LENGTH_FIELD = new ParseField("fuzzy_prefix_length");
private static final ParseField FUZZY_MAX_EXPANSIONS_FIELD = new ParseField("fuzzy_max_expansions");
private static final ParseField FUZZY_REWRITE_FIELD = new ParseField("fuzzy_rewrite");
private static final ParseField PHRASE_SLOP_FIELD = new ParseField("phrase_slop");
private static final ParseField TIE_BREAKER_FIELD = new ParseField("tie_breaker");
private static final ParseField ANALYZE_WILDCARD_FIELD = new ParseField("analyze_wildcard");
private static final ParseField REWRITE_FIELD = new ParseField("rewrite");
private static final ParseField MINIMUM_SHOULD_MATCH_FIELD = new ParseField("minimum_should_match");
private static final ParseField QUOTE_FIELD_SUFFIX_FIELD = new ParseField("quote_field_suffix");
private static final ParseField LENIENT_FIELD = new ParseField("lenient");
private static final ParseField TIME_ZONE_FIELD = new ParseField("time_zone");
private static final ParseField TYPE_FIELD = new ParseField("type");
private static final ParseField GENERATE_SYNONYMS_PHRASE_QUERY = new ParseField("auto_generate_synonyms_phrase_query");
private static final ParseField FUZZY_TRANSPOSITIONS_FIELD = new ParseField("fuzzy_transpositions");
public static final ParseField QUERY_FIELD = new ParseField("query");
public static final ParseField BOOST_FIELD = new ParseField("boost");
public static final ParseField FIELDS_FIELD = new ParseField("fields");
public static final ParseField DEFAULT_FIELD_FIELD = new ParseField("default_field");
public static final ParseField DEFAULT_OPERATOR_FIELD = new ParseField("default_operator");
public static final ParseField ANALYZER_FIELD = new ParseField("analyzer");
public static final ParseField QUOTE_ANALYZER_FIELD = new ParseField("quote_analyzer");
public static final ParseField ALLOW_LEADING_WILDCARD_FIELD = new ParseField("allow_leading_wildcard");
public static final ParseField MAX_DETERMINIZED_STATES_FIELD = new ParseField("max_determinized_states");
public static final ParseField ENABLE_POSITION_INCREMENTS_FIELD = new ParseField("enable_position_increments");
public static final ParseField ESCAPE_FIELD = new ParseField("escape");
public static final ParseField FUZZINESS_FIELD = new ParseField("fuzziness");
public static final ParseField FUZZY_PREFIX_LENGTH_FIELD = new ParseField("fuzzy_prefix_length");
public static final ParseField FUZZY_MAX_EXPANSIONS_FIELD = new ParseField("fuzzy_max_expansions");
public static final ParseField FUZZY_REWRITE_FIELD = new ParseField("fuzzy_rewrite");
public static final ParseField PHRASE_SLOP_FIELD = new ParseField("phrase_slop");
public static final ParseField TIE_BREAKER_FIELD = new ParseField("tie_breaker");
public static final ParseField ANALYZE_WILDCARD_FIELD = new ParseField("analyze_wildcard");
public static final ParseField REWRITE_FIELD = new ParseField("rewrite");
public static final ParseField MINIMUM_SHOULD_MATCH_FIELD = new ParseField("minimum_should_match");
public static final ParseField QUOTE_FIELD_SUFFIX_FIELD = new ParseField("quote_field_suffix");
public static final ParseField LENIENT_FIELD = new ParseField("lenient");
public static final ParseField TIME_ZONE_FIELD = new ParseField("time_zone");
public static final ParseField TYPE_FIELD = new ParseField("type");
public static final ParseField GENERATE_SYNONYMS_PHRASE_QUERY = new ParseField("auto_generate_synonyms_phrase_query");
public static final ParseField FUZZY_TRANSPOSITIONS_FIELD = new ParseField("fuzzy_transpositions");

private final String queryString;

Expand Down
Loading