-
Notifications
You must be signed in to change notification settings - Fork 725
Closed as not planned
Description
🐛 Bug Report
According to the documentation, I should be able to pass a random_score to a function_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
import type { estypes } from "@elastic/elasticsearch";
export const request: estypes.SearchRequest = {
query: {
function_score: {
random_score: {
seed: 10,
field: "_seq_no",
},
},
},
};Results in this error
Object literal may only specify known properties, and 'random_score' does not exist in type 'QueryDslFunctionScoreQuery'.
Expected behavior
No error.
Your Environment
- node version: 18.20.0
@elastic/elasticsearchversion: >=8.12.2- os: Ubuntu 22.04.4