-
Notifications
You must be signed in to change notification settings - Fork 25.3k
ESQL - Add Match function options #120360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESQL - Add Match function options #120360
Conversation
@elasticmachine run elasticsearch-ci/part-1 |
@elasticmachine run elasticsearch-ci/part-4 |
…bclass for error message purposees during analysis
…' into feature/esql-match-options
I needed to make a serialization change for this to work - 9da584c. #120504 created a code structure where I opted for not serializing I'm happy to discuss this change - I'll wait to EOD to merge this PR to see if there's any concern about it. |
💔 Backport failed
You can use sqren/backport to manually backport by running |
(cherry picked from commit d91d516) # Conflicts: # docs/reference/esql/functions/description/match.asciidoc # docs/reference/esql/functions/kibana/definition/match.json # docs/reference/esql/functions/kibana/docs/match.md # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Match.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit d91d516) # Conflicts: # docs/reference/esql/functions/description/match.asciidoc # docs/reference/esql/functions/kibana/definition/match.json # docs/reference/esql/functions/kibana/docs/match.md # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Match.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java
(cherry picked from commit d91d516) # Conflicts: # docs/reference/esql/functions/description/match.asciidoc # docs/reference/esql/functions/kibana/definition/match.json # docs/reference/esql/functions/kibana/docs/match.md # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Match.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java
Adds options to match function.
#118619 added named function parameters. This PR uses this mechanism for allowing
match
function parameters, so match query parameters can be used in ES|QL.This allows using fuzziness and boosting in score, which are interesting use cases for ES|QL.