Skip to content

Commit 157b1c6

Browse files
authored
[DOCS] Add overlays to work around deployment failure (#4285)
1 parent 9bc65e7 commit 157b1c6

File tree

7 files changed

+47
-4
lines changed

7 files changed

+47
-4
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,15 @@ actions:
10711071
# update:
10721072
# aggregations:
10731073
# x-model: true
1074+
- target: "$.components['schemas']['_types.ScriptSource'].oneOf"
1075+
description: Remove oneOf temporarily from ScriptSource
1076+
remove: true
1077+
- target: "$.components['schemas']['_types.ScriptSource']"
1078+
description: Re-add simplified oneOf temporarily in ScriptSource
1079+
update:
1080+
oneOf:
1081+
- type: string
1082+
- type: object
10741083
# Examples
10751084
## xCodeSamples
10761085
- target: "$.paths['/{index}/_doc/{id}']['head']"

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema.json

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

specification/_doc_ids/table.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,9 +706,11 @@ search-application-get,https://www.elastic.co/docs/api/doc/elasticsearch/operati
706706
search-application-put,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-put
707707
search-application-search,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-search
708708
search-render-query,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-render-query
709+
search-retrievers,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrievers
709710
search-count,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-count
710711
search-explain,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-explain
711712
search-field-caps,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-field-caps
713+
search-highlight,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/highlighting
712714
search-knn,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-knn-search
713715
search-multi-search,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch
714716
search-multi-search-template,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch-template

specification/_global/search/SearchRequest.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@ export interface Request extends RequestBase {
387387
body: {
388388
/**
389389
* Defines the aggregations that are run as part of the search request.
390-
* @aliases aggs */ // ES uses "aggregations" in serialization
390+
* @aliases aggs
391+
* @ext_doc_id search-aggregations
392+
*/ // ES uses "aggregations" in serialization
391393
aggregations?: Dictionary<string, AggregationContainer>
392394
/**
393395
* Collapses search results the values of the specified field.
@@ -411,6 +413,7 @@ export interface Request extends RequestBase {
411413
from?: integer
412414
/**
413415
* Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results.
416+
* @ext_doc_id search-highlight
414417
*/
415418
highlight?: Highlight
416419
/**
@@ -477,6 +480,7 @@ export interface Request extends RequestBase {
477480
* A retriever replaces other elements of the search API that also return top documents such as `query` and `knn`.
478481
* @availability stack since=8.14.0 stability=stable
479482
* @availability serverless stability=stable
483+
* @ext_doc_id search-retrievers
480484
*/
481485
retriever?: RetrieverContainer
482486
/**

specification/_global/search/_types/SearchRequestBody.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ import { Sort, SortResults } from '@_types/sort'
4242
export class SearchRequestBody {
4343
/**
4444
* Defines the aggregations that are run as part of the search request.
45-
* @aliases aggs */ // ES uses "aggregations" in serialization
45+
* @aliases aggs
46+
* @ext_doc_id search-aggregations
47+
*/ // ES uses "aggregations" in serialization
4648
aggregations?: Dictionary<string, AggregationContainer>
4749
/**
4850
* Collapses search results the values of the specified field.
@@ -66,6 +68,7 @@ export class SearchRequestBody {
6668
from?: integer
6769
/**
6870
* Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results.
71+
* @ext_doc_id search-highlight
6972
*/
7073
highlight?: Highlight
7174
/**
@@ -132,6 +135,7 @@ export class SearchRequestBody {
132135
* A retriever replaces other elements of the search API that also return top documents such as `query` and `knn`.
133136
* @availability stack since=8.14.0 stability=stable
134137
* @availability serverless stability=stable
138+
* @ext_doc_id search-retrievers
135139
*/
136140
retriever?: RetrieverContainer
137141
/**

0 commit comments

Comments
 (0)