From 345c58ff24bd3ea6c6e0ca8942449211e1aaa983 Mon Sep 17 00:00:00 2001 From: Max Hniebergall <137079448+maxhniebergall@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:11:16 -0400 Subject: [PATCH] renamed id to index (#2481) --- output/openapi/elasticsearch-serverless-openapi.json | 4 ++-- output/schema/schema.json | 2 +- output/typescript/types.ts | 2 +- specification/inference/_types/Results.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index ae3f661524..7247ccb79f 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -49756,7 +49756,7 @@ "inference._types:RankedDocument": { "type": "object", "properties": { - "id": { + "index": { "type": "string" }, "score": { @@ -49767,7 +49767,7 @@ } }, "required": [ - "id", + "index", "score" ] }, diff --git a/output/schema/schema.json b/output/schema/schema.json index d017fbed03..1a962e611e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -128510,7 +128510,7 @@ }, "properties": [ { - "name": "id", + "name": "index", "required": true, "type": { "kind": "instance_of", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 8e7d4596a8..255f9f22b7 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11523,7 +11523,7 @@ export interface InferenceModelConfigContainer extends InferenceModelConfig { } export interface InferenceRankedDocument { - id: string + index: string score: string text?: string } diff --git a/specification/inference/_types/Results.ts b/specification/inference/_types/Results.ts index 0d5da84fea..72aaf740d6 100644 --- a/specification/inference/_types/Results.ts +++ b/specification/inference/_types/Results.ts @@ -70,7 +70,7 @@ export class CompletionResult { * text: Optional, the text of the document, if requested */ export class RankedDocument { - id: string + index: string score: string text?: string }