Skip to content

Commit a8e2733

Browse files
Add qstr options capability
1 parent 97466dc commit a8e2733

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/qstr-function.csv-spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ book_no:keyword
189189
2714
190190
;
191191

192-
qstrWithField1
192+
qstrWithFieldAndOptions
193193
required_capability: qstr_function
194+
required_capability: query_string_function_options
194195

195196
FROM books
196197
| WHERE QSTR("title: Hobbjt~", {"fuzziness": 2})

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,11 @@ public enum Cap {
809809
*/
810810
MATCH_FUNCTION_OPTIONS,
811811

812+
/**
813+
* Support options in the query string function.
814+
*/
815+
QUERY_STRING_FUNCTION_OPTIONS,
816+
812817
/**
813818
* Support for aggregate_metric_double type
814819
*/

0 commit comments

Comments
 (0)