Skip to content

Commit ec27dff

Browse files
Add query to TermsLookup to support terms lookup by query feature (#1095)
* Add query to TermsLookup to support terms lookup by query feature Signed-off-by: Kieran Pringle <contact@kieranpringle.com> * address MR feedback Signed-off-by: Kieran Pringle <contact@kieranpringle.com> --------- Signed-off-by: Kieran Pringle <contact@kieranpringle.com>
1 parent 857d43a commit ec27dff

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
4141
- Add title to `ml.predict_model_stream` and `ml.execute_agent_stream` requestBody ([#1072](https://github.com/opensearch-project/opensearch-api-specification/pull/1072))
4242
- Added `agentic` query type, `agentic_query_translator` request processor, and `agentic_context` response processor ([#1073](https://github.com/opensearch-project/opensearch-api-specification/pull/1073))
4343
- Added `allow_no_indices`, `ignore_unavailable`, and `ignore_throttled` query parameters to `create_pit` ([#1141](https://github.com/opensearch-project/opensearch-api-specification/pull/1141))
44+
- Added `query` to TermsLookup to support terms lookup by query
4445

4546
### Deprecated
4647
- Marked the plural `_aliases` URL forms of `put_alias` and `delete_alias` as deprecated; the singular `_alias` form is the canonical path ([#1131](https://github.com/opensearch-project/opensearch-api-specification/pull/1131))

spec/schemas/_common.query_dsl.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,12 +2166,29 @@ components:
21662166
$ref: '_common.yaml#/components/schemas/Field'
21672167
routing:
21682168
$ref: '_common.yaml#/components/schemas/Routing'
2169+
query:
2170+
$ref: '#/components/schemas/QueryContainer'
2171+
x-version-added: 3.2.0
21692172
store:
21702173
type: boolean
21712174
required:
2172-
- id
21732175
- index
21742176
- path
2177+
allOf:
2178+
- oneOf:
2179+
- type: object
2180+
properties:
2181+
id:
2182+
$ref: '_common.yaml#/components/schemas/Id'
2183+
required:
2184+
- id
2185+
- type: object
2186+
properties:
2187+
query:
2188+
$ref: '#/components/schemas/QueryContainer'
2189+
required:
2190+
- query
2191+
x-version-added: 3.2.0
21752192
TermsSetQuery:
21762193
allOf:
21772194
- $ref: '#/components/schemas/QueryBase'

0 commit comments

Comments
 (0)