Skip to content

ESQL: Add multi_match function #121525

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

Open
ioanatia opened this issue Feb 3, 2025 · 5 comments
Open

ESQL: Add multi_match function #121525

ioanatia opened this issue Feb 3, 2025 · 5 comments
Assignees
Labels
ES|QL-ui Impacts ES|QL UI >feature priority:normal A label for assessing bug priority to be used by ES engineers :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@ioanatia
Copy link
Contributor

ioanatia commented Feb 3, 2025

We want to add another search function, this time for the multi_match query.

Example:

FROM search-movies
| WHERE multi_match([title, plot, summary], "harry potter", { "type": "cross_fields" })

The multi_match function should accept the same options as the multi_match query.

@ioanatia ioanatia added :Search Relevance/Search Catch all for Search Relevance >feature ES|QL-ui Impacts ES|QL UI Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Feb 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/kibana-esql (ES|QL-ui)

@carlosdelest
Copy link
Member

A good PR to learn about how to add a full text search function is the term query PR

@ChrisHegarty ChrisHegarty added the priority:normal A label for assessing bug priority to be used by ES engineers label Feb 6, 2025
@ioanatia
Copy link
Contributor Author

As a follow up refactor, once we have the multi_match function we should be looking at removing MultiMatchQueryPredicate. I am not attempting to remove it before since I think that might conflict a bit with the changes for multi_match.

svilen-mihaylov-elastic added a commit that referenced this issue Apr 15, 2025
Implement multi_match function for ESQL. Its currently available on snapshot builds pending refinement of the syntax.
afoucret pushed a commit to afoucret/elasticsearch that referenced this issue Apr 16, 2025
Implement multi_match function for ESQL. Its currently available on snapshot builds pending refinement of the syntax.
@getkub
Copy link

getkub commented May 8, 2025

These are quite powerful/useful ESQL functions. Great work guys. So much easy to move to create rules using ESQL compared to watchers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ES|QL-ui Impacts ES|QL UI >feature priority:normal A label for assessing bug priority to be used by ES engineers :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

6 participants