Skip to content

Commit

Permalink
Decay placement in additional properties (#2666)
Browse files Browse the repository at this point in the history
* decay placement in additional properties

* ops
  • Loading branch information
l-trotta authored Jul 1, 2024
1 parent 54a8b37 commit 4c35789
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 149 deletions.
12 changes: 6 additions & 6 deletions output/openapi/elasticsearch-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -57844,14 +57844,14 @@
"_types.query_dsl:DateDecayFunction": {
"allOf": [
{
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementDateMathDuration"
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDateMathDuration"
},
{
"type": "object"
}
]
},
"_types.query_dsl:DecayFunctionBaseDecayPlacementDateMathDuration": {
"_types.query_dsl:DecayFunctionBaseDateMathDuration": {
"type": "object",
"properties": {
"multi_value_mode": {
Expand All @@ -57862,14 +57862,14 @@
"_types.query_dsl:NumericDecayFunction": {
"allOf": [
{
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementdoubledouble"
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBasedoubledouble"
},
{
"type": "object"
}
]
},
"_types.query_dsl:DecayFunctionBaseDecayPlacementdoubledouble": {
"_types.query_dsl:DecayFunctionBasedoubledouble": {
"type": "object",
"properties": {
"multi_value_mode": {
Expand All @@ -57880,14 +57880,14 @@
"_types.query_dsl:GeoDecayFunction": {
"allOf": [
{
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementGeoLocationDistance"
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseGeoLocationDistance"
},
{
"type": "object"
}
]
},
"_types.query_dsl:DecayFunctionBaseDecayPlacementGeoLocationDistance": {
"_types.query_dsl:DecayFunctionBaseGeoLocationDistance": {
"type": "object",
"properties": {
"multi_value_mode": {
Expand Down
12 changes: 6 additions & 6 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

188 changes: 127 additions & 61 deletions output/schema/schema-serverless.json
Original file line number Diff line number Diff line change
Expand Up @@ -50074,6 +50074,9 @@
],
"inherits": {
"generics": [
{
"kind": "user_defined_value"
},
{
"kind": "user_defined_value"
}
Expand All @@ -50089,7 +50092,7 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L188-L188"
"specLocation": "_types/query_dsl/compound.ts#L188-L191"
},
{
"attachedBehaviors": [
Expand All @@ -50106,10 +50109,26 @@
}
},
{
"generics": [
{
"kind": "instance_of",
"type": {
"name": "TOrigin",
"namespace": "_types.query_dsl.DecayFunctionBase"
}
},
{
"kind": "instance_of",
"type": {
"name": "TScale",
"namespace": "_types.query_dsl.DecayFunctionBase"
}
}
],
"kind": "instance_of",
"type": {
"name": "TPlacement",
"namespace": "_types.query_dsl.DecayFunctionBase"
"name": "DecayPlacement",
"namespace": "_types.query_dsl"
}
}
],
Expand All @@ -50125,7 +50144,11 @@
],
"generics": [
{
"name": "TPlacement",
"name": "TOrigin",
"namespace": "_types.query_dsl.DecayFunctionBase"
},
{
"name": "TScale",
"namespace": "_types.query_dsl.DecayFunctionBase"
}
],
Expand Down Expand Up @@ -50171,6 +50194,76 @@
"properties": [],
"specLocation": "_spec_utils/behaviors.ts#L39-L48"
},
{
"generics": [
{
"name": "TOrigin",
"namespace": "_types.query_dsl.DecayPlacement"
},
{
"name": "TScale",
"namespace": "_types.query_dsl.DecayPlacement"
}
],
"kind": "interface",
"name": {
"name": "DecayPlacement",
"namespace": "_types.query_dsl"
},
"properties": [
{
"description": "Defines how documents are scored at the distance given at scale.",
"name": "decay",
"required": false,
"serverDefault": 0.5,
"type": {
"kind": "instance_of",
"type": {
"name": "double",
"namespace": "_types"
}
}
},
{
"description": "If defined, the decay function will only compute the decay function for documents with a distance greater than the defined `offset`.",
"name": "offset",
"required": false,
"serverDefault": "0",
"type": {
"kind": "instance_of",
"type": {
"name": "TScale",
"namespace": "_types.query_dsl.DecayPlacement"
}
}
},
{
"description": "Defines the distance from origin + offset at which the computed score will equal `decay` parameter.",
"name": "scale",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "TScale",
"namespace": "_types.query_dsl.DecayPlacement"
}
}
},
{
"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.",
"name": "origin",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "TOrigin",
"namespace": "_types.query_dsl.DecayPlacement"
}
}
}
],
"specLocation": "_types/query_dsl/compound.ts#L154-L173"
},
{
"kind": "enum",
"members": [
Expand Down Expand Up @@ -50204,26 +50297,17 @@
"inherits": {
"generics": [
{
"generics": [
{
"kind": "instance_of",
"type": {
"name": "DateMath",
"namespace": "_types"
}
},
{
"kind": "instance_of",
"type": {
"name": "Duration",
"namespace": "_types"
}
}
],
"kind": "instance_of",
"type": {
"name": "DecayPlacement",
"namespace": "_types.query_dsl"
"name": "DateMath",
"namespace": "_types"
}
},
{
"kind": "instance_of",
"type": {
"name": "Duration",
"namespace": "_types"
}
}
],
Expand All @@ -50238,7 +50322,7 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L192-L194"
"specLocation": "_types/query_dsl/compound.ts#L193-L193"
},
{
"attachedBehaviors": [
Expand All @@ -50247,26 +50331,17 @@
"inherits": {
"generics": [
{
"generics": [
{
"kind": "instance_of",
"type": {
"name": "double",
"namespace": "_types"
}
},
{
"kind": "instance_of",
"type": {
"name": "double",
"namespace": "_types"
}
}
],
"kind": "instance_of",
"type": {
"name": "DecayPlacement",
"namespace": "_types.query_dsl"
"name": "double",
"namespace": "_types"
}
},
{
"kind": "instance_of",
"type": {
"name": "double",
"namespace": "_types"
}
}
],
Expand All @@ -50281,7 +50356,7 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L189-L191"
"specLocation": "_types/query_dsl/compound.ts#L192-L192"
},
{
"attachedBehaviors": [
Expand All @@ -50290,26 +50365,17 @@
"inherits": {
"generics": [
{
"generics": [
{
"kind": "instance_of",
"type": {
"name": "GeoLocation",
"namespace": "_types"
}
},
{
"kind": "instance_of",
"type": {
"name": "Distance",
"namespace": "_types"
}
}
],
"kind": "instance_of",
"type": {
"name": "DecayPlacement",
"namespace": "_types.query_dsl"
"name": "GeoLocation",
"namespace": "_types"
}
},
{
"kind": "instance_of",
"type": {
"name": "Distance",
"namespace": "_types"
}
}
],
Expand All @@ -50324,7 +50390,7 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L195-L197"
"specLocation": "_types/query_dsl/compound.ts#L194-L197"
},
{
"kind": "interface",
Expand Down
Loading

0 comments on commit 4c35789

Please sign in to comment.