Skip to content

Commit 4c35789

Browse files
authored
Decay placement in additional properties (#2666)
* decay placement in additional properties * ops
1 parent 54a8b37 commit 4c35789

File tree

6 files changed

+211
-149
lines changed

6 files changed

+211
-149
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57844,14 +57844,14 @@
5784457844
"_types.query_dsl:DateDecayFunction": {
5784557845
"allOf": [
5784657846
{
57847-
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementDateMathDuration"
57847+
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDateMathDuration"
5784857848
},
5784957849
{
5785057850
"type": "object"
5785157851
}
5785257852
]
5785357853
},
57854-
"_types.query_dsl:DecayFunctionBaseDecayPlacementDateMathDuration": {
57854+
"_types.query_dsl:DecayFunctionBaseDateMathDuration": {
5785557855
"type": "object",
5785657856
"properties": {
5785757857
"multi_value_mode": {
@@ -57862,14 +57862,14 @@
5786257862
"_types.query_dsl:NumericDecayFunction": {
5786357863
"allOf": [
5786457864
{
57865-
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementdoubledouble"
57865+
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBasedoubledouble"
5786657866
},
5786757867
{
5786857868
"type": "object"
5786957869
}
5787057870
]
5787157871
},
57872-
"_types.query_dsl:DecayFunctionBaseDecayPlacementdoubledouble": {
57872+
"_types.query_dsl:DecayFunctionBasedoubledouble": {
5787357873
"type": "object",
5787457874
"properties": {
5787557875
"multi_value_mode": {
@@ -57880,14 +57880,14 @@
5788057880
"_types.query_dsl:GeoDecayFunction": {
5788157881
"allOf": [
5788257882
{
57883-
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementGeoLocationDistance"
57883+
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseGeoLocationDistance"
5788457884
},
5788557885
{
5788657886
"type": "object"
5788757887
}
5788857888
]
5788957889
},
57890-
"_types.query_dsl:DecayFunctionBaseDecayPlacementGeoLocationDistance": {
57890+
"_types.query_dsl:DecayFunctionBaseGeoLocationDistance": {
5789157891
"type": "object",
5789257892
"properties": {
5789357893
"multi_value_mode": {

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 127 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -50074,6 +50074,9 @@
5007450074
],
5007550075
"inherits": {
5007650076
"generics": [
50077+
{
50078+
"kind": "user_defined_value"
50079+
},
5007750080
{
5007850081
"kind": "user_defined_value"
5007950082
}
@@ -50089,7 +50092,7 @@
5008950092
"namespace": "_types.query_dsl"
5009050093
},
5009150094
"properties": [],
50092-
"specLocation": "_types/query_dsl/compound.ts#L188-L188"
50095+
"specLocation": "_types/query_dsl/compound.ts#L188-L191"
5009350096
},
5009450097
{
5009550098
"attachedBehaviors": [
@@ -50106,10 +50109,26 @@
5010650109
}
5010750110
},
5010850111
{
50112+
"generics": [
50113+
{
50114+
"kind": "instance_of",
50115+
"type": {
50116+
"name": "TOrigin",
50117+
"namespace": "_types.query_dsl.DecayFunctionBase"
50118+
}
50119+
},
50120+
{
50121+
"kind": "instance_of",
50122+
"type": {
50123+
"name": "TScale",
50124+
"namespace": "_types.query_dsl.DecayFunctionBase"
50125+
}
50126+
}
50127+
],
5010950128
"kind": "instance_of",
5011050129
"type": {
50111-
"name": "TPlacement",
50112-
"namespace": "_types.query_dsl.DecayFunctionBase"
50130+
"name": "DecayPlacement",
50131+
"namespace": "_types.query_dsl"
5011350132
}
5011450133
}
5011550134
],
@@ -50125,7 +50144,11 @@
5012550144
],
5012650145
"generics": [
5012750146
{
50128-
"name": "TPlacement",
50147+
"name": "TOrigin",
50148+
"namespace": "_types.query_dsl.DecayFunctionBase"
50149+
},
50150+
{
50151+
"name": "TScale",
5012950152
"namespace": "_types.query_dsl.DecayFunctionBase"
5013050153
}
5013150154
],
@@ -50171,6 +50194,76 @@
5017150194
"properties": [],
5017250195
"specLocation": "_spec_utils/behaviors.ts#L39-L48"
5017350196
},
50197+
{
50198+
"generics": [
50199+
{
50200+
"name": "TOrigin",
50201+
"namespace": "_types.query_dsl.DecayPlacement"
50202+
},
50203+
{
50204+
"name": "TScale",
50205+
"namespace": "_types.query_dsl.DecayPlacement"
50206+
}
50207+
],
50208+
"kind": "interface",
50209+
"name": {
50210+
"name": "DecayPlacement",
50211+
"namespace": "_types.query_dsl"
50212+
},
50213+
"properties": [
50214+
{
50215+
"description": "Defines how documents are scored at the distance given at scale.",
50216+
"name": "decay",
50217+
"required": false,
50218+
"serverDefault": 0.5,
50219+
"type": {
50220+
"kind": "instance_of",
50221+
"type": {
50222+
"name": "double",
50223+
"namespace": "_types"
50224+
}
50225+
}
50226+
},
50227+
{
50228+
"description": "If defined, the decay function will only compute the decay function for documents with a distance greater than the defined `offset`.",
50229+
"name": "offset",
50230+
"required": false,
50231+
"serverDefault": "0",
50232+
"type": {
50233+
"kind": "instance_of",
50234+
"type": {
50235+
"name": "TScale",
50236+
"namespace": "_types.query_dsl.DecayPlacement"
50237+
}
50238+
}
50239+
},
50240+
{
50241+
"description": "Defines the distance from origin + offset at which the computed score will equal `decay` parameter.",
50242+
"name": "scale",
50243+
"required": false,
50244+
"type": {
50245+
"kind": "instance_of",
50246+
"type": {
50247+
"name": "TScale",
50248+
"namespace": "_types.query_dsl.DecayPlacement"
50249+
}
50250+
}
50251+
},
50252+
{
50253+
"description": "The point of origin used for calculating distance. Must be given as a number for numeric field, date for date fields and geo point for geo fields.",
50254+
"name": "origin",
50255+
"required": false,
50256+
"type": {
50257+
"kind": "instance_of",
50258+
"type": {
50259+
"name": "TOrigin",
50260+
"namespace": "_types.query_dsl.DecayPlacement"
50261+
}
50262+
}
50263+
}
50264+
],
50265+
"specLocation": "_types/query_dsl/compound.ts#L154-L173"
50266+
},
5017450267
{
5017550268
"kind": "enum",
5017650269
"members": [
@@ -50204,26 +50297,17 @@
5020450297
"inherits": {
5020550298
"generics": [
5020650299
{
50207-
"generics": [
50208-
{
50209-
"kind": "instance_of",
50210-
"type": {
50211-
"name": "DateMath",
50212-
"namespace": "_types"
50213-
}
50214-
},
50215-
{
50216-
"kind": "instance_of",
50217-
"type": {
50218-
"name": "Duration",
50219-
"namespace": "_types"
50220-
}
50221-
}
50222-
],
5022350300
"kind": "instance_of",
5022450301
"type": {
50225-
"name": "DecayPlacement",
50226-
"namespace": "_types.query_dsl"
50302+
"name": "DateMath",
50303+
"namespace": "_types"
50304+
}
50305+
},
50306+
{
50307+
"kind": "instance_of",
50308+
"type": {
50309+
"name": "Duration",
50310+
"namespace": "_types"
5022750311
}
5022850312
}
5022950313
],
@@ -50238,7 +50322,7 @@
5023850322
"namespace": "_types.query_dsl"
5023950323
},
5024050324
"properties": [],
50241-
"specLocation": "_types/query_dsl/compound.ts#L192-L194"
50325+
"specLocation": "_types/query_dsl/compound.ts#L193-L193"
5024250326
},
5024350327
{
5024450328
"attachedBehaviors": [
@@ -50247,26 +50331,17 @@
5024750331
"inherits": {
5024850332
"generics": [
5024950333
{
50250-
"generics": [
50251-
{
50252-
"kind": "instance_of",
50253-
"type": {
50254-
"name": "double",
50255-
"namespace": "_types"
50256-
}
50257-
},
50258-
{
50259-
"kind": "instance_of",
50260-
"type": {
50261-
"name": "double",
50262-
"namespace": "_types"
50263-
}
50264-
}
50265-
],
5026650334
"kind": "instance_of",
5026750335
"type": {
50268-
"name": "DecayPlacement",
50269-
"namespace": "_types.query_dsl"
50336+
"name": "double",
50337+
"namespace": "_types"
50338+
}
50339+
},
50340+
{
50341+
"kind": "instance_of",
50342+
"type": {
50343+
"name": "double",
50344+
"namespace": "_types"
5027050345
}
5027150346
}
5027250347
],
@@ -50281,7 +50356,7 @@
5028150356
"namespace": "_types.query_dsl"
5028250357
},
5028350358
"properties": [],
50284-
"specLocation": "_types/query_dsl/compound.ts#L189-L191"
50359+
"specLocation": "_types/query_dsl/compound.ts#L192-L192"
5028550360
},
5028650361
{
5028750362
"attachedBehaviors": [
@@ -50290,26 +50365,17 @@
5029050365
"inherits": {
5029150366
"generics": [
5029250367
{
50293-
"generics": [
50294-
{
50295-
"kind": "instance_of",
50296-
"type": {
50297-
"name": "GeoLocation",
50298-
"namespace": "_types"
50299-
}
50300-
},
50301-
{
50302-
"kind": "instance_of",
50303-
"type": {
50304-
"name": "Distance",
50305-
"namespace": "_types"
50306-
}
50307-
}
50308-
],
5030950368
"kind": "instance_of",
5031050369
"type": {
50311-
"name": "DecayPlacement",
50312-
"namespace": "_types.query_dsl"
50370+
"name": "GeoLocation",
50371+
"namespace": "_types"
50372+
}
50373+
},
50374+
{
50375+
"kind": "instance_of",
50376+
"type": {
50377+
"name": "Distance",
50378+
"namespace": "_types"
5031350379
}
5031450380
}
5031550381
],
@@ -50324,7 +50390,7 @@
5032450390
"namespace": "_types.query_dsl"
5032550391
},
5032650392
"properties": [],
50327-
"specLocation": "_types/query_dsl/compound.ts#L195-L197"
50393+
"specLocation": "_types/query_dsl/compound.ts#L194-L197"
5032850394
},
5032950395
{
5033050396
"kind": "interface",

0 commit comments

Comments
 (0)