diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index cd59aa6038..21a6c23255 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -8309,18 +8309,9 @@ { "$ref": "#/components/parameters/create-id" }, - { - "$ref": "#/components/parameters/create-if_primary_term" - }, - { - "$ref": "#/components/parameters/create-if_seq_no" - }, { "$ref": "#/components/parameters/create-include_source_on_error" }, - { - "$ref": "#/components/parameters/create-op_type" - }, { "$ref": "#/components/parameters/create-pipeline" }, @@ -8383,18 +8374,9 @@ { "$ref": "#/components/parameters/create-id" }, - { - "$ref": "#/components/parameters/create-if_primary_term" - }, - { - "$ref": "#/components/parameters/create-if_seq_no" - }, { "$ref": "#/components/parameters/create-include_source_on_error" }, - { - "$ref": "#/components/parameters/create-op_type" - }, { "$ref": "#/components/parameters/create-pipeline" }, @@ -10476,6 +10458,9 @@ { "$ref": "#/components/parameters/eql.search-expand_wildcards" }, + { + "$ref": "#/components/parameters/eql.search-ccs_minimize_roundtrips" + }, { "$ref": "#/components/parameters/eql.search-ignore_unavailable" }, @@ -10532,6 +10517,9 @@ { "$ref": "#/components/parameters/eql.search-expand_wildcards" }, + { + "$ref": "#/components/parameters/eql.search-ccs_minimize_roundtrips" + }, { "$ref": "#/components/parameters/eql.search-ignore_unavailable" }, @@ -20918,11 +20906,6 @@ "summary": "A text embedding task", "description": "Run `PUT _inference/text_embedding/hugging-face-embeddings` to create an inference endpoint that performs a `text_embedding` task type.", "value": "{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\", \n \"url\": \"url-endpoint\" \n }\n}" - }, - "PutHuggingFaceRequestExample2": { - "summary": "A rerank task", - "description": "Run `PUT _inference/rerank/hugging-face-rerank` to create an inference endpoint that performs a `rerank` task type.", - "value": "{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\", \n \"url\": \"url-endpoint\" \n },\n \"task_settings\": {\n \"return_documents\": true,\n \"top_n\": 3\n }\n}" } } } @@ -21457,16 +21440,6 @@ "summary": "Rerank task", "description": "Run `POST _inference/rerank/cohere_rerank` to perform reranking on the example input.", "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\"\n}" - }, - "RerankRequestExample2": { - "summary": "Rerank task", - "description": "Run `POST _inference/rerank/bge-reranker-base-mkn` to perform reranking on the example input via Hugging Face", - "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\",\n \"return_documents\": false,\n \"top_n\": 2\n}" - }, - "RerankRequestExample3": { - "summary": "Rerank task", - "description": "Run `POST _inference/rerank/bge-reranker-base-mkn` to perform reranking on the example input via Hugging Face", - "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\",\n \"return_documents\": true,\n \"top_n\": 3\n}" } } } @@ -80532,13 +80505,6 @@ "scheduled" ] }, - "_types.OpType": { - "type": "string", - "enum": [ - "index", - "create" - ] - }, "_types.WriteResponseBase": { "type": "object", "properties": { @@ -83063,6 +83029,13 @@ "phase" ] }, + "_types.OpType": { + "type": "string", + "enum": [ + "index", + "create" + ] + }, "indices.add_block.IndicesBlockOptions": { "type": "string", "enum": [ @@ -114918,26 +114891,6 @@ }, "style": "simple" }, - "create-if_primary_term": { - "in": "query", - "name": "if_primary_term", - "description": "Only perform the operation if the document has this primary term.", - "deprecated": false, - "schema": { - "type": "number" - }, - "style": "form" - }, - "create-if_seq_no": { - "in": "query", - "name": "if_seq_no", - "description": "Only perform the operation if the document has this sequence number.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.SequenceNumber" - }, - "style": "form" - }, "create-include_source_on_error": { "in": "query", "name": "include_source_on_error", @@ -114948,16 +114901,6 @@ }, "style": "form" }, - "create-op_type": { - "in": "query", - "name": "op_type", - "description": "Set to `create` to only index the document if it does not already exist (put if absent).\nIf a document with the specified `_id` already exists, the indexing operation will fail.\nThe behavior is the same as using the `/_create` endpoint.\nIf a document ID is specified, this paramater defaults to `index`.\nOtherwise, it defaults to `create`.\nIf the request targets a data stream, an `op_type` of `create` is required.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.OpType" - }, - "style": "form" - }, "create-pipeline": { "in": "query", "name": "pipeline", @@ -115083,6 +115026,7 @@ "eql.search-allow_no_indices": { "in": "query", "name": "allow_no_indices", + "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "deprecated": false, "schema": { "type": "boolean" @@ -115112,12 +115056,23 @@ "eql.search-expand_wildcards": { "in": "query", "name": "expand_wildcards", + "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.ExpandWildcards" }, "style": "form" }, + "eql.search-ccs_minimize_roundtrips": { + "in": "query", + "name": "ccs_minimize_roundtrips", + "description": "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "eql.search-ignore_unavailable": { "in": "query", "name": "ignore_unavailable", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 5020059d5d..37850152fb 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -4178,18 +4178,9 @@ { "$ref": "#/components/parameters/create-id" }, - { - "$ref": "#/components/parameters/create-if_primary_term" - }, - { - "$ref": "#/components/parameters/create-if_seq_no" - }, { "$ref": "#/components/parameters/create-include_source_on_error" }, - { - "$ref": "#/components/parameters/create-op_type" - }, { "$ref": "#/components/parameters/create-pipeline" }, @@ -4252,18 +4243,9 @@ { "$ref": "#/components/parameters/create-id" }, - { - "$ref": "#/components/parameters/create-if_primary_term" - }, - { - "$ref": "#/components/parameters/create-if_seq_no" - }, { "$ref": "#/components/parameters/create-include_source_on_error" }, - { - "$ref": "#/components/parameters/create-op_type" - }, { "$ref": "#/components/parameters/create-pipeline" }, @@ -6029,6 +6011,9 @@ { "$ref": "#/components/parameters/eql.search-expand_wildcards" }, + { + "$ref": "#/components/parameters/eql.search-ccs_minimize_roundtrips" + }, { "$ref": "#/components/parameters/eql.search-ignore_unavailable" }, @@ -6085,6 +6070,9 @@ { "$ref": "#/components/parameters/eql.search-expand_wildcards" }, + { + "$ref": "#/components/parameters/eql.search-ccs_minimize_roundtrips" + }, { "$ref": "#/components/parameters/eql.search-ignore_unavailable" }, @@ -11835,11 +11823,6 @@ "summary": "A text embedding task", "description": "Run `PUT _inference/text_embedding/hugging-face-embeddings` to create an inference endpoint that performs a `text_embedding` task type.", "value": "{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\", \n \"url\": \"url-endpoint\" \n }\n}" - }, - "PutHuggingFaceRequestExample2": { - "summary": "A rerank task", - "description": "Run `PUT _inference/rerank/hugging-face-rerank` to create an inference endpoint that performs a `rerank` task type.", - "value": "{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\", \n \"url\": \"url-endpoint\" \n },\n \"task_settings\": {\n \"return_documents\": true,\n \"top_n\": 3\n }\n}" } } } @@ -12374,16 +12357,6 @@ "summary": "Rerank task", "description": "Run `POST _inference/rerank/cohere_rerank` to perform reranking on the example input.", "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\"\n}" - }, - "RerankRequestExample2": { - "summary": "Rerank task", - "description": "Run `POST _inference/rerank/bge-reranker-base-mkn` to perform reranking on the example input via Hugging Face", - "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\",\n \"return_documents\": false,\n \"top_n\": 2\n}" - }, - "RerankRequestExample3": { - "summary": "Rerank task", - "description": "Run `POST _inference/rerank/bge-reranker-base-mkn` to perform reranking on the example input via Hugging Face", - "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\",\n \"return_documents\": true,\n \"top_n\": 3\n}" } } } @@ -51957,13 +51930,6 @@ "scheduled" ] }, - "_types.OpType": { - "type": "string", - "enum": [ - "index", - "create" - ] - }, "_types.WriteResponseBase": { "type": "object", "properties": { @@ -52863,6 +52829,13 @@ "weight" ] }, + "_types.OpType": { + "type": "string", + "enum": [ + "index", + "create" + ] + }, "indices.add_block.IndicesBlockOptions": { "type": "string", "enum": [ @@ -68910,26 +68883,6 @@ }, "style": "simple" }, - "create-if_primary_term": { - "in": "query", - "name": "if_primary_term", - "description": "Only perform the operation if the document has this primary term.", - "deprecated": false, - "schema": { - "type": "number" - }, - "style": "form" - }, - "create-if_seq_no": { - "in": "query", - "name": "if_seq_no", - "description": "Only perform the operation if the document has this sequence number.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.SequenceNumber" - }, - "style": "form" - }, "create-include_source_on_error": { "in": "query", "name": "include_source_on_error", @@ -68940,16 +68893,6 @@ }, "style": "form" }, - "create-op_type": { - "in": "query", - "name": "op_type", - "description": "Set to `create` to only index the document if it does not already exist (put if absent).\nIf a document with the specified `_id` already exists, the indexing operation will fail.\nThe behavior is the same as using the `/_create` endpoint.\nIf a document ID is specified, this paramater defaults to `index`.\nOtherwise, it defaults to `create`.\nIf the request targets a data stream, an `op_type` of `create` is required.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.OpType" - }, - "style": "form" - }, "create-pipeline": { "in": "query", "name": "pipeline", @@ -69075,6 +69018,7 @@ "eql.search-allow_no_indices": { "in": "query", "name": "allow_no_indices", + "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "deprecated": false, "schema": { "type": "boolean" @@ -69104,12 +69048,23 @@ "eql.search-expand_wildcards": { "in": "query", "name": "expand_wildcards", + "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.ExpandWildcards" }, "style": "form" }, + "eql.search-ccs_minimize_roundtrips": { + "in": "query", + "name": "ccs_minimize_roundtrips", + "description": "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "eql.search-ignore_unavailable": { "in": "query", "name": "ignore_unavailable", diff --git a/output/schema/schema.json b/output/schema/schema.json index 7ab4ab13d1..81b010f245 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -25714,34 +25714,6 @@ } ], "query": [ - { - "description": "Only perform the operation if the document has this primary term.", - "extDocId": "optimistic-concurrency", - "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", - "name": "if_primary_term", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "long", - "namespace": "_types" - } - } - }, - { - "description": "Only perform the operation if the document has this sequence number.", - "extDocId": "optimistic-concurrency", - "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", - "name": "if_seq_no", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "SequenceNumber", - "namespace": "_types" - } - } - }, { "description": "True or false if to include the document source in the error message in case of parsing errors.", "name": "include_source_on_error", @@ -25755,18 +25727,6 @@ } } }, - { - "description": "Set to `create` to only index the document if it does not already exist (put if absent).\nIf a document with the specified `_id` already exists, the indexing operation will fail.\nThe behavior is the same as using the `/_create` endpoint.\nIf a document ID is specified, this paramater defaults to `index`.\nOtherwise, it defaults to `create`.\nIf the request targets a data stream, an `op_type` of `create` is required.", - "name": "op_type", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "OpType", - "namespace": "_types" - } - } - }, { "description": "The ID of the pipeline to use to preprocess incoming documents.\nIf the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request.\nIf a final pipeline is configured, it will always run regardless of the value of this parameter.", "name": "pipeline", @@ -25881,7 +25841,7 @@ } } ], - "specLocation": "_global/create/CreateRequest.ts#L35-L221" + "specLocation": "_global/create/CreateRequest.ts#L32-L199" }, { "kind": "response", @@ -134886,6 +134846,7 @@ ], "query": [ { + "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "name": "allow_no_indices", "required": false, "serverDefault": true, @@ -134924,6 +134885,7 @@ } }, { + "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "serverDefault": "open", @@ -134935,6 +134897,19 @@ } } }, + { + "description": "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", + "name": "ccs_minimize_roundtrips", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "If true, missing or closed indices are not included in the response.", "name": "ignore_unavailable", @@ -134987,7 +134962,7 @@ } } ], - "specLocation": "eql/search/EqlSearchRequest.ts#L28-L161" + "specLocation": "eql/search/EqlSearchRequest.ts#L28-L166" }, { "kind": "response", @@ -170155,38 +170130,6 @@ "method_request": "PUT _inference/text_embedding/hugging-face-embeddings", "summary": "A text embedding task", "value": "{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\", \n \"url\": \"url-endpoint\" \n }\n}" - }, - "PutHuggingFaceRequestExample2": { - "alternatives": [ - { - "code": "resp = client.inference.put(\n task_type=\"rerank\",\n inference_id=\"hugging-face-rerank\",\n inference_config={\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\",\n \"url\": \"url-endpoint\"\n },\n \"task_settings\": {\n \"return_documents\": True,\n \"top_n\": 3\n }\n },\n)", - "language": "Python" - }, - { - "code": "const response = await client.inference.put({\n task_type: \"rerank\",\n inference_id: \"hugging-face-rerank\",\n inference_config: {\n service: \"hugging_face\",\n service_settings: {\n api_key: \"hugging-face-access-token\",\n url: \"url-endpoint\",\n },\n task_settings: {\n return_documents: true,\n top_n: 3,\n },\n },\n});", - "language": "JavaScript" - }, - { - "code": "response = client.inference.put(\n task_type: \"rerank\",\n inference_id: \"hugging-face-rerank\",\n body: {\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\",\n \"url\": \"url-endpoint\"\n },\n \"task_settings\": {\n \"return_documents\": true,\n \"top_n\": 3\n }\n }\n)", - "language": "Ruby" - }, - { - "code": "$resp = $client->inference()->put([\n \"task_type\" => \"rerank\",\n \"inference_id\" => \"hugging-face-rerank\",\n \"body\" => [\n \"service\" => \"hugging_face\",\n \"service_settings\" => [\n \"api_key\" => \"hugging-face-access-token\",\n \"url\" => \"url-endpoint\",\n ],\n \"task_settings\" => [\n \"return_documents\" => true,\n \"top_n\" => 3,\n ],\n ],\n]);", - "language": "PHP" - }, - { - "code": "curl -X PUT -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"service\":\"hugging_face\",\"service_settings\":{\"api_key\":\"hugging-face-access-token\",\"url\":\"url-endpoint\"},\"task_settings\":{\"return_documents\":true,\"top_n\":3}}' \"$ELASTICSEARCH_URL/_inference/rerank/hugging-face-rerank\"", - "language": "curl" - }, - { - "code": "client.inference().put(p -> p\n .inferenceId(\"hugging-face-rerank\")\n .taskType(TaskType.Rerank)\n .inferenceConfig(i -> i\n .service(\"hugging_face\")\n .serviceSettings(JsonData.fromJson(\"{\\\"api_key\\\":\\\"hugging-face-access-token\\\",\\\"url\\\":\\\"url-endpoint\\\"}\"))\n .taskSettings(JsonData.fromJson(\"{\\\"return_documents\\\":true,\\\"top_n\\\":3}\"))\n )\n);\n", - "language": "Java" - } - ], - "description": "Run `PUT _inference/rerank/hugging-face-rerank` to create an inference endpoint that performs a `rerank` task type.", - "method_request": "PUT _inference/rerank/hugging-face-rerank", - "summary": "A rerank task", - "value": "{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\", \n \"url\": \"url-endpoint\" \n },\n \"task_settings\": {\n \"return_documents\": true,\n \"top_n\": 3\n }\n}" } }, "inherits": { @@ -171162,70 +171105,6 @@ "method_request": "POST _inference/rerank/cohere_rerank", "summary": "Rerank task", "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\"\n}" - }, - "RerankRequestExample2": { - "alternatives": [ - { - "code": "resp = client.inference.rerank(\n inference_id=\"bge-reranker-base-mkn\",\n input=[\n \"luke\",\n \"like\",\n \"leia\",\n \"chewy\",\n \"r2d2\",\n \"star\",\n \"wars\"\n ],\n query=\"star wars main character\",\n return_documents=False,\n top_n=2,\n)", - "language": "Python" - }, - { - "code": "const response = await client.inference.rerank({\n inference_id: \"bge-reranker-base-mkn\",\n input: [\"luke\", \"like\", \"leia\", \"chewy\", \"r2d2\", \"star\", \"wars\"],\n query: \"star wars main character\",\n return_documents: false,\n top_n: 2,\n});", - "language": "JavaScript" - }, - { - "code": "response = client.inference.rerank(\n inference_id: \"bge-reranker-base-mkn\",\n body: {\n \"input\": [\n \"luke\",\n \"like\",\n \"leia\",\n \"chewy\",\n \"r2d2\",\n \"star\",\n \"wars\"\n ],\n \"query\": \"star wars main character\",\n \"return_documents\": false,\n \"top_n\": 2\n }\n)", - "language": "Ruby" - }, - { - "code": "$resp = $client->inference()->rerank([\n \"inference_id\" => \"bge-reranker-base-mkn\",\n \"body\" => [\n \"input\" => array(\n \"luke\",\n \"like\",\n \"leia\",\n \"chewy\",\n \"r2d2\",\n \"star\",\n \"wars\",\n ),\n \"query\" => \"star wars main character\",\n \"return_documents\" => false,\n \"top_n\" => 2,\n ],\n]);", - "language": "PHP" - }, - { - "code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"input\":[\"luke\",\"like\",\"leia\",\"chewy\",\"r2d2\",\"star\",\"wars\"],\"query\":\"star wars main character\",\"return_documents\":false,\"top_n\":2}' \"$ELASTICSEARCH_URL/_inference/rerank/bge-reranker-base-mkn\"", - "language": "curl" - }, - { - "code": "client.inference().rerank(r -> r\n .inferenceId(\"bge-reranker-base-mkn\")\n .input(List.of(\"luke\",\"like\",\"leia\",\"chewy\",\"r2d2\",\"star\",\"wars\"))\n .query(\"star wars main character\")\n);\n", - "language": "Java" - } - ], - "description": "Run `POST _inference/rerank/bge-reranker-base-mkn` to perform reranking on the example input via Hugging Face", - "method_request": "POST _inference/rerank/bge-reranker-base-mkn", - "summary": "Rerank task", - "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\",\n \"return_documents\": false,\n \"top_n\": 2\n}" - }, - "RerankRequestExample3": { - "alternatives": [ - { - "code": "resp = client.inference.rerank(\n inference_id=\"bge-reranker-base-mkn\",\n input=[\n \"luke\",\n \"like\",\n \"leia\",\n \"chewy\",\n \"r2d2\",\n \"star\",\n \"wars\"\n ],\n query=\"star wars main character\",\n return_documents=True,\n top_n=3,\n)", - "language": "Python" - }, - { - "code": "const response = await client.inference.rerank({\n inference_id: \"bge-reranker-base-mkn\",\n input: [\"luke\", \"like\", \"leia\", \"chewy\", \"r2d2\", \"star\", \"wars\"],\n query: \"star wars main character\",\n return_documents: true,\n top_n: 3,\n});", - "language": "JavaScript" - }, - { - "code": "response = client.inference.rerank(\n inference_id: \"bge-reranker-base-mkn\",\n body: {\n \"input\": [\n \"luke\",\n \"like\",\n \"leia\",\n \"chewy\",\n \"r2d2\",\n \"star\",\n \"wars\"\n ],\n \"query\": \"star wars main character\",\n \"return_documents\": true,\n \"top_n\": 3\n }\n)", - "language": "Ruby" - }, - { - "code": "$resp = $client->inference()->rerank([\n \"inference_id\" => \"bge-reranker-base-mkn\",\n \"body\" => [\n \"input\" => array(\n \"luke\",\n \"like\",\n \"leia\",\n \"chewy\",\n \"r2d2\",\n \"star\",\n \"wars\",\n ),\n \"query\" => \"star wars main character\",\n \"return_documents\" => true,\n \"top_n\" => 3,\n ],\n]);", - "language": "PHP" - }, - { - "code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"input\":[\"luke\",\"like\",\"leia\",\"chewy\",\"r2d2\",\"star\",\"wars\"],\"query\":\"star wars main character\",\"return_documents\":true,\"top_n\":3}' \"$ELASTICSEARCH_URL/_inference/rerank/bge-reranker-base-mkn\"", - "language": "curl" - }, - { - "code": "client.inference().rerank(r -> r\n .inferenceId(\"bge-reranker-base-mkn\")\n .input(List.of(\"luke\",\"like\",\"leia\",\"chewy\",\"r2d2\",\"star\",\"wars\"))\n .query(\"star wars main character\")\n);\n", - "language": "Java" - } - ], - "description": "Run `POST _inference/rerank/bge-reranker-base-mkn` to perform reranking on the example input via Hugging Face", - "method_request": "POST _inference/rerank/bge-reranker-base-mkn", - "summary": "Rerank task", - "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\",\n \"return_documents\": true,\n \"top_n\": 3\n}" } }, "inherits": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 7ef79abf8c..b1c79962ec 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1,23 +1,5 @@ { "endpointErrors": { - "create": { - "request": [ - "Request: query parameter 'if_primary_term' does not exist in the json spec", - "Request: query parameter 'if_seq_no' does not exist in the json spec", - "Request: query parameter 'op_type' does not exist in the json spec", - "Request: query parameter 'require_alias' does not exist in the json spec", - "Request: query parameter 'require_data_stream' does not exist in the json spec" - ], - "response": [] - }, - "eql.search": { - "request": [ - "Request: query parameter 'allow_no_indices' does not exist in the json spec", - "Request: query parameter 'expand_wildcards' does not exist in the json spec", - "Request: query parameter 'ignore_unavailable' does not exist in the json spec" - ], - "response": [] - }, "esql.async_query_get": { "request": [ "Request: query parameter 'format' does not exist in the json spec" @@ -47,12 +29,6 @@ ], "response": [] }, - "snapshot.repository_analyze": { - "request": [ - "Request: query parameter 'register_operation_count' does not exist in the json spec" - ], - "response": [] - }, "xpack.info": { "request": [ "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b94babbf54..0e6d50e484 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -159,10 +159,7 @@ export interface CountResponse { export interface CreateRequest extends RequestBase { id: Id index: IndexName - if_primary_term?: long - if_seq_no?: SequenceNumber include_source_on_error?: boolean - op_type?: OpType pipeline?: string refresh?: Refresh require_alias?: boolean @@ -10793,6 +10790,7 @@ export interface EqlSearchRequest extends RequestBase { allow_partial_search_results?: boolean allow_partial_sequence_results?: boolean expand_wildcards?: ExpandWildcards + ccs_minimize_roundtrips?: boolean ignore_unavailable?: boolean keep_alive?: Duration keep_on_completion?: boolean diff --git a/specification/_global/create/CreateRequest.ts b/specification/_global/create/CreateRequest.ts index 35dcdcb72d..06e19ff024 100644 --- a/specification/_global/create/CreateRequest.ts +++ b/specification/_global/create/CreateRequest.ts @@ -21,15 +21,12 @@ import { RequestBase } from '@_types/Base' import { Id, IndexName, - OpType, Refresh, Routing, - SequenceNumber, VersionNumber, VersionType, WaitForActiveShards } from '@_types/common' -import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' /** @@ -134,30 +131,11 @@ export interface Request extends RequestBase { index: IndexName } query_parameters: { - /** - * Only perform the operation if the document has this primary term. - * @ext_doc_id optimistic-concurrency - */ - if_primary_term?: long - /** - * Only perform the operation if the document has this sequence number. - * @ext_doc_id optimistic-concurrency - */ - if_seq_no?: SequenceNumber /** * True or false if to include the document source in the error message in case of parsing errors. * @server_default true */ include_source_on_error?: boolean - /** - * Set to `create` to only index the document if it does not already exist (put if absent). - * If a document with the specified `_id` already exists, the indexing operation will fail. - * The behavior is the same as using the `/_create` endpoint. - * If a document ID is specified, this paramater defaults to `index`. - * Otherwise, it defaults to `create`. - * If the request targets a data stream, an `op_type` of `create` is required. - */ - op_type?: OpType /** * The ID of the pipeline to use to preprocess incoming documents. * If the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request. diff --git a/specification/_json_spec/create.json b/specification/_json_spec/create.json index ffa5e0f26e..03038a9366 100644 --- a/specification/_json_spec/create.json +++ b/specification/_json_spec/create.json @@ -62,6 +62,14 @@ "include_source_on_error": { "type": "boolean", "description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true." + }, + "require_alias": { + "type": "boolean", + "description": "When true, requires destination to be an alias. Default is false" + }, + "require_data_stream": { + "type": "boolean", + "description": "When true, requires destination to be a data stream (existing or to be created). Default is false" } }, "body": { diff --git a/specification/_json_spec/eql.search.json b/specification/_json_spec/eql.search.json index 1d9831a6e8..92568e69b1 100644 --- a/specification/_json_spec/eql.search.json +++ b/specification/_json_spec/eql.search.json @@ -48,6 +48,25 @@ "type": "boolean", "description": "Control whether a sequence query should return partial results or no results at all in case of shard failures. This option has effect only if [allow_partial_search_results] is true.", "default": false + }, + "ccs_minimize_roundtrips": { + "type": "boolean", + "description": "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", + "default": true + }, + "ignore_unavailable": { + "type": "boolean", + "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)" + }, + "allow_no_indices": { + "type": "boolean", + "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)" + }, + "expand_wildcards": { + "type": "enum", + "options": ["open", "closed", "hidden", "none", "all"], + "default": "open", + "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both." } }, "body": { diff --git a/specification/_json_spec/snapshot.repository_analyze.json b/specification/_json_spec/snapshot.repository_analyze.json index d80c4bc122..2967e427be 100644 --- a/specification/_json_spec/snapshot.repository_analyze.json +++ b/specification/_json_spec/snapshot.repository_analyze.json @@ -32,6 +32,10 @@ "type": "number", "description": "Number of operations to run concurrently during the test. Defaults to 10." }, + "register_operation_count": { + "type": "number", + "description": "The minimum number of linearizable register operations to perform in total. Defaults to 10." + }, "read_node_count": { "type": "number", "description": "Number of nodes on which to read a blob after writing. Defaults to 10." diff --git a/specification/eql/search/EqlSearchRequest.ts b/specification/eql/search/EqlSearchRequest.ts index bea2938a0b..7365746f20 100644 --- a/specification/eql/search/EqlSearchRequest.ts +++ b/specification/eql/search/EqlSearchRequest.ts @@ -65,6 +65,11 @@ export interface Request extends RequestBase { * @server_default open */ expand_wildcards?: ExpandWildcards + /** + * Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + * @server_default true + */ + ccs_minimize_roundtrips?: boolean /** * If true, missing or closed indices are not included in the response. * @server_default true