Skip to content

Commit 7f0396c

Browse files
Add speficaiton for a new rescore type (#5308)
Based on PR elastic/elasticsearch#74274
1 parent 7dec8b0 commit 7f0396c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

specification/_global/search/_types/rescoring.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { double, integer } from '@_types/Numeric'
2121
import { QueryContainer } from '@_types/query_dsl/abstractions'
22+
import { Script } from '@_types/Scripting'
2223
import { Dictionary } from '@spec_utils/Dictionary'
2324
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2425

@@ -35,6 +36,8 @@ export class Rescore {
3536
query?: RescoreQuery
3637

3738
learning_to_rank?: LearningToRank
39+
40+
script?: ScriptRescore
3841
}
3942

4043
export class RescoreQuery {
@@ -95,3 +98,7 @@ export class LearningToRank {
9598
*/
9699
params?: Dictionary<string, UserDefinedValue>
97100
}
101+
102+
export class ScriptRescore {
103+
script: Script
104+
}

0 commit comments

Comments
 (0)