Open arslivinski opened 4 months ago
Duplicate of https://github.com/elastic/elasticsearch-specification/issues/2109, but I'll keep it open here so you get notified when that gets fixed. It's been sitting for a bit, but hopefully I can circle back to it soon. :upside_down_face:
A fix has been provided in https://github.com/elastic/elasticsearch-specification/pull/2833. Closing this, please follow that PR for updates.
Reopening. I misread the description; that fix does not cover the exact issue here.
🐛 Bug Report
According to the documentation, I should be able to pass a
random_score
to afunction_score
. However, the TypeScript type appears to be wrong, not allowing this property.Note that I'm using this package for the typings only.
To Reproduce
The following code
Results in this error
Playground
Expected behavior
No error.
Your Environment
@elastic/elasticsearch
version: >=8.12.2