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.
Description
enrich
in the document index API supportsmax_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.