elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.07k stars 24.83k forks source link

ESQL: `max_matches` for for ENRICH #112931

Open nik9000 opened 1 month ago

nik9000 commented 1 month ago

Description

enrich in the document index API supports max_matches when enriching. It'd be useful to be able to specify that in ESQL's ENRICH. I can't tell from the enrich docs which match is chosen. ESQL typically has some kind of sorting mechanism for this sort of thing. We should decide on how to specif that too.

Maybe | ENRICH languages_policy ON a MAX 10 ASC or something like that.

elasticsearchmachine commented 1 month ago

Pinging @elastic/es-analytical-engine (Team:Analytics)