Skip to content

Commit cd0d063

Browse files
committed
Add overlay for query in run painless script API
1 parent e545dd0 commit cd0d063

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,18 @@ actions:
153153
description: >
154154
An optional guiding query that constrains the Graph API as it explores connected terms.
155155
For example, you might want to direct the Graph API to ignore older data by specifying a query that identifies recent documents.
156+
- target: "$.components['schemas']['_global.scripts_painless_execute:PainlessContextSetup'].properties.query"
157+
description: Remove query object from painless script context setup schema
158+
- target: "$.components['schemas']['_global.scripts_painless_execute:PainlessContextSetup'].properties"
159+
description: "Re-add simplified query object in painless script context setup schema"
160+
update:
161+
query:
162+
x-abbreviated: true
163+
type: object
164+
description: >
165+
This property applies only when `score` is specified as the script `context`.
166+
Use this property to specify a query for computing a score.
167+
Besides deciding whether or not the document matches, the query clause also calculates a relevance score in the `_score` metadata field.
156168
# Examples
157169
- target: "$.components['requestBodies']['async_search.submit']"
158170
description: "Add example for asynch search submit request"

0 commit comments

Comments
 (0)