diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index cca6df89f..d31870247 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -40930,10 +40930,7 @@ { "type": "object", "additionalProperties": { - "type": "array", - "items": { - "type": "number" - } + "type": "number" } } ] @@ -41760,23 +41757,42 @@ "$ref": "#/components/schemas/_global.search._types:AggregationProfile" } }, + "cluster": { + "type": "string" + }, + "dfs": { + "$ref": "#/components/schemas/_global.search._types:DfsProfile" + }, + "fetch": { + "$ref": "#/components/schemas/_global.search._types:FetchProfile" + }, "id": { "type": "string" }, + "index": { + "$ref": "#/components/schemas/_types:IndexName" + }, + "node_id": { + "$ref": "#/components/schemas/_types:NodeId" + }, "searches": { "type": "array", "items": { "$ref": "#/components/schemas/_global.search._types:SearchProfile" } }, - "fetch": { - "$ref": "#/components/schemas/_global.search._types:FetchProfile" + "shard_id": { + "type": "number" } }, "required": [ "aggregations", + "cluster", "id", - "searches" + "index", + "node_id", + "searches", + "shard_id" ] }, "_global.search._types:AggregationProfile": { @@ -41967,6 +41983,18 @@ }, "map_reducer": { "type": "string" + }, + "brute_force_used": { + "type": "number" + }, + "dynamic_pruning_attempted": { + "type": "number" + }, + "dynamic_pruning_used": { + "type": "number" + }, + "skipped_due_to_no_data": { + "type": "number" } } }, @@ -41987,86 +42015,164 @@ } } }, - "_global.search._types:SearchProfile": { + "_global.search._types:DfsProfile": { "type": "object", "properties": { - "collector": { + "statistics": { + "$ref": "#/components/schemas/_global.search._types:DfsStatisticsProfile" + }, + "knn": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:Collector" + "$ref": "#/components/schemas/_global.search._types:DfsKnnProfile" } + } + } + }, + "_global.search._types:DfsStatisticsProfile": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "query": { + "description": { + "type": "string" + }, + "time": { + "$ref": "#/components/schemas/_types:Duration" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "breakdown": { + "$ref": "#/components/schemas/_global.search._types:DfsStatisticsBreakdown" + }, + "debug": { + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "children": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:QueryProfile" + "$ref": "#/components/schemas/_global.search._types:DfsStatisticsProfile" } + } + }, + "required": [ + "type", + "description", + "time_in_nanos", + "breakdown" + ] + }, + "_global.search._types:DfsStatisticsBreakdown": { + "type": "object", + "properties": { + "collection_statistics": { + "type": "number" }, - "rewrite_time": { + "collection_statistics_count": { + "type": "number" + }, + "create_weight": { + "type": "number" + }, + "create_weight_count": { + "type": "number" + }, + "rewrite": { + "type": "number" + }, + "rewrite_count": { + "type": "number" + }, + "term_statistics": { + "type": "number" + }, + "term_statistics_count": { "type": "number" } }, "required": [ - "collector", - "query", - "rewrite_time" + "collection_statistics", + "collection_statistics_count", + "create_weight", + "create_weight_count", + "rewrite", + "rewrite_count", + "term_statistics", + "term_statistics_count" ] }, - "_global.search._types:Collector": { + "_global.search._types:DfsKnnProfile": { "type": "object", "properties": { - "name": { - "type": "string" + "vector_operations_count": { + "type": "number" }, - "reason": { - "type": "string" + "query": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:KnnQueryProfileResult" + } }, - "time_in_nanos": { - "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + "rewrite_time": { + "type": "number" }, - "children": { + "collector": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:Collector" + "$ref": "#/components/schemas/_global.search._types:KnnCollectorResult" } } }, "required": [ - "name", - "reason", - "time_in_nanos" + "query", + "rewrite_time", + "collector" ] }, - "_global.search._types:QueryProfile": { + "_global.search._types:KnnQueryProfileResult": { "type": "object", "properties": { - "breakdown": { - "$ref": "#/components/schemas/_global.search._types:QueryBreakdown" + "type": { + "type": "string" }, "description": { "type": "string" }, + "time": { + "$ref": "#/components/schemas/_types:Duration" + }, "time_in_nanos": { "$ref": "#/components/schemas/_types:DurationValueUnitNanos" }, - "type": { - "type": "string" + "breakdown": { + "$ref": "#/components/schemas/_global.search._types:KnnQueryProfileBreakdown" + }, + "debug": { + "type": "object", + "additionalProperties": { + "type": "object" + } }, "children": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:QueryProfile" + "$ref": "#/components/schemas/_global.search._types:KnnQueryProfileResult" } } }, "required": [ - "breakdown", + "type", "description", "time_in_nanos", - "type" + "breakdown" ] }, - "_global.search._types:QueryBreakdown": { + "_global.search._types:KnnQueryProfileBreakdown": { "type": "object", "properties": { "advance": { @@ -42081,22 +42187,28 @@ "build_scorer_count": { "type": "number" }, - "create_weight": { + "compute_max_score": { "type": "number" }, - "create_weight_count": { + "compute_max_score_count": { "type": "number" }, - "match": { + "count_weight": { "type": "number" }, - "match_count": { + "count_weight_count": { "type": "number" }, - "shallow_advance": { + "create_weight": { "type": "number" }, - "shallow_advance_count": { + "create_weight_count": { + "type": "number" + }, + "match": { + "type": "number" + }, + "match_count": { "type": "number" }, "next_doc": { @@ -42111,16 +42223,16 @@ "score_count": { "type": "number" }, - "compute_max_score": { + "set_min_competitive_score": { "type": "number" }, - "compute_max_score_count": { + "set_min_competitive_score_count": { "type": "number" }, - "set_min_competitive_score": { + "shallow_advance": { "type": "number" }, - "set_min_competitive_score_count": { + "shallow_advance_count": { "type": "number" } }, @@ -42129,20 +42241,50 @@ "advance_count", "build_scorer", "build_scorer_count", + "compute_max_score", + "compute_max_score_count", + "count_weight", + "count_weight_count", "create_weight", "create_weight_count", "match", "match_count", - "shallow_advance", - "shallow_advance_count", "next_doc", "next_doc_count", "score", "score_count", - "compute_max_score", - "compute_max_score_count", "set_min_competitive_score", - "set_min_competitive_score_count" + "set_min_competitive_score_count", + "shallow_advance", + "shallow_advance_count" + ] + }, + "_global.search._types:KnnCollectorResult": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "time": { + "$ref": "#/components/schemas/_types:Duration" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:KnnCollectorResult" + } + } + }, + "required": [ + "name", + "reason", + "time_in_nanos" ] }, "_global.search._types:FetchProfile": { @@ -42220,6 +42362,175 @@ } } }, + "_types:NodeId": { + "type": "string" + }, + "_global.search._types:SearchProfile": { + "type": "object", + "properties": { + "collector": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:Collector" + } + }, + "query": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:QueryProfile" + } + }, + "rewrite_time": { + "type": "number" + } + }, + "required": [ + "collector", + "query", + "rewrite_time" + ] + }, + "_global.search._types:Collector": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:Collector" + } + } + }, + "required": [ + "name", + "reason", + "time_in_nanos" + ] + }, + "_global.search._types:QueryProfile": { + "type": "object", + "properties": { + "breakdown": { + "$ref": "#/components/schemas/_global.search._types:QueryBreakdown" + }, + "description": { + "type": "string" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "type": { + "type": "string" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:QueryProfile" + } + } + }, + "required": [ + "breakdown", + "description", + "time_in_nanos", + "type" + ] + }, + "_global.search._types:QueryBreakdown": { + "type": "object", + "properties": { + "advance": { + "type": "number" + }, + "advance_count": { + "type": "number" + }, + "build_scorer": { + "type": "number" + }, + "build_scorer_count": { + "type": "number" + }, + "create_weight": { + "type": "number" + }, + "create_weight_count": { + "type": "number" + }, + "match": { + "type": "number" + }, + "match_count": { + "type": "number" + }, + "shallow_advance": { + "type": "number" + }, + "shallow_advance_count": { + "type": "number" + }, + "next_doc": { + "type": "number" + }, + "next_doc_count": { + "type": "number" + }, + "score": { + "type": "number" + }, + "score_count": { + "type": "number" + }, + "compute_max_score": { + "type": "number" + }, + "compute_max_score_count": { + "type": "number" + }, + "count_weight": { + "type": "number" + }, + "count_weight_count": { + "type": "number" + }, + "set_min_competitive_score": { + "type": "number" + }, + "set_min_competitive_score_count": { + "type": "number" + } + }, + "required": [ + "advance", + "advance_count", + "build_scorer", + "build_scorer_count", + "create_weight", + "create_weight_count", + "match", + "match_count", + "shallow_advance", + "shallow_advance_count", + "next_doc", + "next_doc_count", + "score", + "score_count", + "compute_max_score", + "compute_max_score_count", + "count_weight", + "count_weight_count", + "set_min_competitive_score", + "set_min_competitive_score_count" + ] + }, "_types:ScrollId": { "type": "string" }, @@ -50635,9 +50946,6 @@ } ] }, - "_types:NodeId": { - "type": "string" - }, "_types:Bytes": { "type": "string", "enum": [ diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index c38285a46..6b4d4a98b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -24210,10 +24210,7 @@ { "type": "object", "additionalProperties": { - "type": "array", - "items": { - "type": "number" - } + "type": "number" } } ] @@ -25040,23 +25037,42 @@ "$ref": "#/components/schemas/_global.search._types:AggregationProfile" } }, + "cluster": { + "type": "string" + }, + "dfs": { + "$ref": "#/components/schemas/_global.search._types:DfsProfile" + }, + "fetch": { + "$ref": "#/components/schemas/_global.search._types:FetchProfile" + }, "id": { "type": "string" }, + "index": { + "$ref": "#/components/schemas/_types:IndexName" + }, + "node_id": { + "$ref": "#/components/schemas/_types:NodeId" + }, "searches": { "type": "array", "items": { "$ref": "#/components/schemas/_global.search._types:SearchProfile" } }, - "fetch": { - "$ref": "#/components/schemas/_global.search._types:FetchProfile" + "shard_id": { + "type": "number" } }, "required": [ "aggregations", + "cluster", "id", - "searches" + "index", + "node_id", + "searches", + "shard_id" ] }, "_global.search._types:AggregationProfile": { @@ -25247,6 +25263,18 @@ }, "map_reducer": { "type": "string" + }, + "brute_force_used": { + "type": "number" + }, + "dynamic_pruning_attempted": { + "type": "number" + }, + "dynamic_pruning_used": { + "type": "number" + }, + "skipped_due_to_no_data": { + "type": "number" } } }, @@ -25267,86 +25295,164 @@ } } }, - "_global.search._types:SearchProfile": { + "_global.search._types:DfsProfile": { "type": "object", "properties": { - "collector": { + "statistics": { + "$ref": "#/components/schemas/_global.search._types:DfsStatisticsProfile" + }, + "knn": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:Collector" + "$ref": "#/components/schemas/_global.search._types:DfsKnnProfile" } + } + } + }, + "_global.search._types:DfsStatisticsProfile": { + "type": "object", + "properties": { + "type": { + "type": "string" }, - "query": { + "description": { + "type": "string" + }, + "time": { + "$ref": "#/components/schemas/_types:Duration" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "breakdown": { + "$ref": "#/components/schemas/_global.search._types:DfsStatisticsBreakdown" + }, + "debug": { + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "children": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:QueryProfile" + "$ref": "#/components/schemas/_global.search._types:DfsStatisticsProfile" } + } + }, + "required": [ + "type", + "description", + "time_in_nanos", + "breakdown" + ] + }, + "_global.search._types:DfsStatisticsBreakdown": { + "type": "object", + "properties": { + "collection_statistics": { + "type": "number" }, - "rewrite_time": { + "collection_statistics_count": { + "type": "number" + }, + "create_weight": { + "type": "number" + }, + "create_weight_count": { + "type": "number" + }, + "rewrite": { + "type": "number" + }, + "rewrite_count": { + "type": "number" + }, + "term_statistics": { + "type": "number" + }, + "term_statistics_count": { "type": "number" } }, "required": [ - "collector", - "query", - "rewrite_time" + "collection_statistics", + "collection_statistics_count", + "create_weight", + "create_weight_count", + "rewrite", + "rewrite_count", + "term_statistics", + "term_statistics_count" ] }, - "_global.search._types:Collector": { + "_global.search._types:DfsKnnProfile": { "type": "object", "properties": { - "name": { - "type": "string" + "vector_operations_count": { + "type": "number" }, - "reason": { - "type": "string" + "query": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:KnnQueryProfileResult" + } }, - "time_in_nanos": { - "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + "rewrite_time": { + "type": "number" }, - "children": { + "collector": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:Collector" + "$ref": "#/components/schemas/_global.search._types:KnnCollectorResult" } } }, "required": [ - "name", - "reason", - "time_in_nanos" + "query", + "rewrite_time", + "collector" ] }, - "_global.search._types:QueryProfile": { + "_global.search._types:KnnQueryProfileResult": { "type": "object", "properties": { - "breakdown": { - "$ref": "#/components/schemas/_global.search._types:QueryBreakdown" + "type": { + "type": "string" }, "description": { "type": "string" }, + "time": { + "$ref": "#/components/schemas/_types:Duration" + }, "time_in_nanos": { "$ref": "#/components/schemas/_types:DurationValueUnitNanos" }, - "type": { - "type": "string" + "breakdown": { + "$ref": "#/components/schemas/_global.search._types:KnnQueryProfileBreakdown" + }, + "debug": { + "type": "object", + "additionalProperties": { + "type": "object" + } }, "children": { "type": "array", "items": { - "$ref": "#/components/schemas/_global.search._types:QueryProfile" + "$ref": "#/components/schemas/_global.search._types:KnnQueryProfileResult" } } }, "required": [ - "breakdown", + "type", "description", "time_in_nanos", - "type" + "breakdown" ] }, - "_global.search._types:QueryBreakdown": { + "_global.search._types:KnnQueryProfileBreakdown": { "type": "object", "properties": { "advance": { @@ -25361,22 +25467,28 @@ "build_scorer_count": { "type": "number" }, - "create_weight": { + "compute_max_score": { "type": "number" }, - "create_weight_count": { + "compute_max_score_count": { "type": "number" }, - "match": { + "count_weight": { "type": "number" }, - "match_count": { + "count_weight_count": { "type": "number" }, - "shallow_advance": { + "create_weight": { "type": "number" }, - "shallow_advance_count": { + "create_weight_count": { + "type": "number" + }, + "match": { + "type": "number" + }, + "match_count": { "type": "number" }, "next_doc": { @@ -25391,16 +25503,16 @@ "score_count": { "type": "number" }, - "compute_max_score": { + "set_min_competitive_score": { "type": "number" }, - "compute_max_score_count": { + "set_min_competitive_score_count": { "type": "number" }, - "set_min_competitive_score": { + "shallow_advance": { "type": "number" }, - "set_min_competitive_score_count": { + "shallow_advance_count": { "type": "number" } }, @@ -25409,20 +25521,50 @@ "advance_count", "build_scorer", "build_scorer_count", + "compute_max_score", + "compute_max_score_count", + "count_weight", + "count_weight_count", "create_weight", "create_weight_count", "match", "match_count", - "shallow_advance", - "shallow_advance_count", "next_doc", "next_doc_count", "score", "score_count", - "compute_max_score", - "compute_max_score_count", "set_min_competitive_score", - "set_min_competitive_score_count" + "set_min_competitive_score_count", + "shallow_advance", + "shallow_advance_count" + ] + }, + "_global.search._types:KnnCollectorResult": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "time": { + "$ref": "#/components/schemas/_types:Duration" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:KnnCollectorResult" + } + } + }, + "required": [ + "name", + "reason", + "time_in_nanos" ] }, "_global.search._types:FetchProfile": { @@ -25500,6 +25642,175 @@ } } }, + "_types:NodeId": { + "type": "string" + }, + "_global.search._types:SearchProfile": { + "type": "object", + "properties": { + "collector": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:Collector" + } + }, + "query": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:QueryProfile" + } + }, + "rewrite_time": { + "type": "number" + } + }, + "required": [ + "collector", + "query", + "rewrite_time" + ] + }, + "_global.search._types:Collector": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:Collector" + } + } + }, + "required": [ + "name", + "reason", + "time_in_nanos" + ] + }, + "_global.search._types:QueryProfile": { + "type": "object", + "properties": { + "breakdown": { + "$ref": "#/components/schemas/_global.search._types:QueryBreakdown" + }, + "description": { + "type": "string" + }, + "time_in_nanos": { + "$ref": "#/components/schemas/_types:DurationValueUnitNanos" + }, + "type": { + "type": "string" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/_global.search._types:QueryProfile" + } + } + }, + "required": [ + "breakdown", + "description", + "time_in_nanos", + "type" + ] + }, + "_global.search._types:QueryBreakdown": { + "type": "object", + "properties": { + "advance": { + "type": "number" + }, + "advance_count": { + "type": "number" + }, + "build_scorer": { + "type": "number" + }, + "build_scorer_count": { + "type": "number" + }, + "create_weight": { + "type": "number" + }, + "create_weight_count": { + "type": "number" + }, + "match": { + "type": "number" + }, + "match_count": { + "type": "number" + }, + "shallow_advance": { + "type": "number" + }, + "shallow_advance_count": { + "type": "number" + }, + "next_doc": { + "type": "number" + }, + "next_doc_count": { + "type": "number" + }, + "score": { + "type": "number" + }, + "score_count": { + "type": "number" + }, + "compute_max_score": { + "type": "number" + }, + "compute_max_score_count": { + "type": "number" + }, + "count_weight": { + "type": "number" + }, + "count_weight_count": { + "type": "number" + }, + "set_min_competitive_score": { + "type": "number" + }, + "set_min_competitive_score_count": { + "type": "number" + } + }, + "required": [ + "advance", + "advance_count", + "build_scorer", + "build_scorer_count", + "create_weight", + "create_weight_count", + "match", + "match_count", + "shallow_advance", + "shallow_advance_count", + "next_doc", + "next_doc_count", + "score", + "score_count", + "compute_max_score", + "compute_max_score_count", + "count_weight", + "count_weight_count", + "set_min_competitive_score", + "set_min_competitive_score_count" + ] + }, "_types:ScrollId": { "type": "string" }, @@ -35220,9 +35531,6 @@ "warn" ] }, - "_types:NodeId": { - "type": "string" - }, "cat._types:CatTrainedModelsColumns": { "oneOf": [ { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 32e22f1b1..a9cd0cb40 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -68298,13 +68298,10 @@ "kind": "dictionary_of", "singleKey": false, "value": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "double", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" } } } @@ -72894,7 +72891,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L93-L95" + "specLocation": "_global/search/_types/profile.ts#L101-L103" }, { "kind": "interface", @@ -72917,6 +72914,39 @@ } } }, + { + "name": "cluster", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "dfs", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DfsProfile", + "namespace": "_global.search._types" + } + } + }, + { + "name": "fetch", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FetchProfile", + "namespace": "_global.search._types" + } + } + }, { "name": "id", "required": true, @@ -72928,6 +72958,28 @@ } } }, + { + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + }, + { + "name": "node_id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "NodeId", + "namespace": "_types" + } + } + }, { "name": "searches", "required": true, @@ -72943,18 +72995,18 @@ } }, { - "name": "fetch", - "required": false, + "name": "shard_id", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "FetchProfile", - "namespace": "_global.search._types" + "name": "long", + "namespace": "_types" } } } ], - "specLocation": "_global/search/_types/profile.ts#L132-L137" + "specLocation": "_global/search/_types/profile.ts#L142-L152" }, { "kind": "interface", @@ -73042,7 +73094,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L77-L84" + "specLocation": "_global/search/_types/profile.ts#L85-L92" }, { "kind": "interface", @@ -73184,7 +73236,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L23-L36" + "specLocation": "_global/search/_types/profile.ts#L26-L39" }, { "kind": "interface", @@ -73506,19 +73558,9 @@ "namespace": "_builtins" } } - } - ], - "specLocation": "_global/search/_types/profile.ts#L39-L68" - }, - { - "kind": "interface", - "name": { - "name": "AggregationProfileDelegateDebugFilter", - "namespace": "_global.search._types" - }, - "properties": [ + }, { - "name": "results_from_metadata", + "name": "brute_force_used", "required": false, "type": { "kind": "instance_of", @@ -73529,29 +73571,29 @@ } }, { - "name": "query", + "name": "dynamic_pruning_attempted", "required": false, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "integer", + "namespace": "_types" } } }, { - "name": "specialized_for", + "name": "dynamic_pruning_used", "required": false, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "integer", + "namespace": "_types" } } }, { - "name": "segments_counted_in_constant_time", + "name": "skipped_due_to_no_data", "required": false, "type": { "kind": "instance_of", @@ -73562,67 +73604,40 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L70-L75" + "specLocation": "_global/search/_types/profile.ts#L42-L76" }, { "kind": "interface", "name": { - "name": "SearchProfile", + "name": "AggregationProfileDelegateDebugFilter", "namespace": "_global.search._types" }, "properties": [ { - "name": "collector", - "required": true, + "name": "results_from_metadata", + "required": false, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "Collector", - "namespace": "_global.search._types" - } + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" } } }, { "name": "query", - "required": true, - "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "QueryProfile", - "namespace": "_global.search._types" - } - } - } - }, - { - "name": "rewrite_time", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { - "name": "long", - "namespace": "_types" + "name": "string", + "namespace": "_builtins" } } - } - ], - "specLocation": "_global/search/_types/profile.ts#L126-L130" - }, - { - "kind": "interface", - "name": { - "name": "Collector", - "namespace": "_global.search._types" - }, - "properties": [ + }, { - "name": "name", - "required": true, + "name": "specialized_for", + "required": false, "type": { "kind": "instance_of", "type": { @@ -73632,68 +73647,69 @@ } }, { - "name": "reason", - "required": true, + "name": "segments_counted_in_constant_time", + "required": false, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "integer", + "namespace": "_types" } } - }, + } + ], + "specLocation": "_global/search/_types/profile.ts#L78-L83" + }, + { + "kind": "interface", + "name": { + "name": "DfsProfile", + "namespace": "_global.search._types" + }, + "properties": [ { - "name": "time_in_nanos", - "required": true, + "name": "statistics", + "required": false, "type": { - "generics": [ - { - "kind": "instance_of", - "type": { - "name": "UnitNanos", - "namespace": "_types" - } - } - ], "kind": "instance_of", "type": { - "name": "DurationValue", - "namespace": "_types" + "name": "DfsStatisticsProfile", + "namespace": "_global.search._types" } } }, { - "name": "children", + "name": "knn", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { - "name": "Collector", + "name": "DfsKnnProfile", "namespace": "_global.search._types" } } } } ], - "specLocation": "_global/search/_types/profile.ts#L86-L91" + "specLocation": "_global/search/_types/profile.ts#L154-L157" }, { "kind": "interface", "name": { - "name": "QueryProfile", + "name": "DfsStatisticsProfile", "namespace": "_global.search._types" }, "properties": [ { - "name": "breakdown", + "name": "type", "required": true, "type": { "kind": "instance_of", "type": { - "name": "QueryBreakdown", - "namespace": "_global.search._types" + "name": "string", + "namespace": "_builtins" } } }, @@ -73708,6 +73724,17 @@ } } }, + { + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "name": "time_in_nanos", "required": true, @@ -73729,13 +73756,31 @@ } }, { - "name": "type", + "name": "breakdown", "required": true, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DfsStatisticsBreakdown", + "namespace": "_global.search._types" + } + } + }, + { + "name": "debug", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "user_defined_value" } } }, @@ -73747,24 +73792,24 @@ "value": { "kind": "instance_of", "type": { - "name": "QueryProfile", + "name": "DfsStatisticsProfile", "namespace": "_global.search._types" } } } } ], - "specLocation": "_global/search/_types/profile.ts#L118-L124" + "specLocation": "_global/search/_types/profile.ts#L159-L167" }, { "kind": "interface", "name": { - "name": "QueryBreakdown", + "name": "DfsStatisticsBreakdown", "namespace": "_global.search._types" }, "properties": [ { - "name": "advance", + "name": "collection_statistics", "required": true, "type": { "kind": "instance_of", @@ -73775,7 +73820,7 @@ } }, { - "name": "advance_count", + "name": "collection_statistics_count", "required": true, "type": { "kind": "instance_of", @@ -73786,7 +73831,7 @@ } }, { - "name": "build_scorer", + "name": "create_weight", "required": true, "type": { "kind": "instance_of", @@ -73797,7 +73842,7 @@ } }, { - "name": "build_scorer_count", + "name": "create_weight_count", "required": true, "type": { "kind": "instance_of", @@ -73808,7 +73853,7 @@ } }, { - "name": "create_weight", + "name": "rewrite", "required": true, "type": { "kind": "instance_of", @@ -73819,7 +73864,7 @@ } }, { - "name": "create_weight_count", + "name": "rewrite_count", "required": true, "type": { "kind": "instance_of", @@ -73830,7 +73875,7 @@ } }, { - "name": "match", + "name": "term_statistics", "required": true, "type": { "kind": "instance_of", @@ -73841,7 +73886,7 @@ } }, { - "name": "match_count", + "name": "term_statistics_count", "required": true, "type": { "kind": "instance_of", @@ -73850,10 +73895,20 @@ "namespace": "_types" } } - }, + } + ], + "specLocation": "_global/search/_types/profile.ts#L170-L179" + }, + { + "kind": "interface", + "name": { + "name": "DfsKnnProfile", + "namespace": "_global.search._types" + }, + "properties": [ { - "name": "shallow_advance", - "required": true, + "name": "vector_operations_count", + "required": false, "type": { "kind": "instance_of", "type": { @@ -73863,62 +73918,897 @@ } }, { - "name": "shallow_advance_count", + "name": "query", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "long", - "namespace": "_types" - } + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnQueryProfileResult", + "namespace": "_global.search._types" + } + } + } + }, + { + "name": "rewrite_time", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "collector", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnCollectorResult", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L181-L186" + }, + { + "kind": "interface", + "name": { + "name": "KnnQueryProfileResult", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "description", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "name": "time_in_nanos", + "required": true, + "type": { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } + } + ], + "kind": "instance_of", + "type": { + "name": "DurationValue", + "namespace": "_types" + } + } + }, + { + "name": "breakdown", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "KnnQueryProfileBreakdown", + "namespace": "_global.search._types" + } + } + }, + { + "name": "debug", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "user_defined_value" + } + } + }, + { + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnQueryProfileResult", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L188-L196" + }, + { + "kind": "interface", + "name": { + "name": "KnnQueryProfileBreakdown", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "advance", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "advance_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "build_scorer", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "build_scorer_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "compute_max_score", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "compute_max_score_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "count_weight", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "count_weight_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "create_weight", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "create_weight_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "match", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "match_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "next_doc", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "next_doc_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "score", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "score_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "set_min_competitive_score", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "set_min_competitive_score_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "shallow_advance", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "shallow_advance_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L199-L220" + }, + { + "kind": "interface", + "name": { + "name": "KnnCollectorResult", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "name", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "reason", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "name": "time_in_nanos", + "required": true, + "type": { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } + } + ], + "kind": "instance_of", + "type": { + "name": "DurationValue", + "namespace": "_types" + } + } + }, + { + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnCollectorResult", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L222-L228" + }, + { + "kind": "interface", + "name": { + "name": "FetchProfile", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "description", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "time_in_nanos", + "required": true, + "type": { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } + } + ], + "kind": "instance_of", + "type": { + "name": "DurationValue", + "namespace": "_types" + } + } + }, + { + "name": "breakdown", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "FetchProfileBreakdown", + "namespace": "_global.search._types" + } + } + }, + { + "name": "debug", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FetchProfileDebug", + "namespace": "_global.search._types" + } + } + }, + { + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "FetchProfile", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L230-L237" + }, + { + "kind": "interface", + "name": { + "name": "FetchProfileBreakdown", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "load_source", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "load_source_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "load_stored_fields", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "load_stored_fields_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "next_reader", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "next_reader_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "process_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "process", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L239-L248" + }, + { + "kind": "interface", + "name": { + "name": "FetchProfileDebug", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "stored_fields", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + }, + { + "name": "fast_path", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L250-L253" + }, + { + "kind": "type_alias", + "name": { + "name": "NodeId", + "namespace": "_types" + }, + "specLocation": "_types/common.ts#L63-L63", + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "kind": "interface", + "name": { + "name": "SearchProfile", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "collector", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "Collector", + "namespace": "_global.search._types" + } + } + } + }, + { + "name": "query", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "QueryProfile", + "namespace": "_global.search._types" + } + } + } + }, + { + "name": "rewrite_time", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L136-L140" + }, + { + "kind": "interface", + "name": { + "name": "Collector", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "name", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "reason", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "time_in_nanos", + "required": true, + "type": { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } + } + ], + "kind": "instance_of", + "type": { + "name": "DurationValue", + "namespace": "_types" + } } }, { - "name": "next_doc", + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "Collector", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L94-L99" + }, + { + "kind": "interface", + "name": { + "name": "QueryProfile", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "breakdown", "required": true, "type": { "kind": "instance_of", "type": { - "name": "long", - "namespace": "_types" + "name": "QueryBreakdown", + "namespace": "_global.search._types" } } }, { - "name": "next_doc_count", + "name": "description", "required": true, "type": { "kind": "instance_of", "type": { - "name": "long", - "namespace": "_types" + "name": "string", + "namespace": "_builtins" } } }, { - "name": "score", + "name": "time_in_nanos", "required": true, "type": { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } + } + ], "kind": "instance_of", "type": { - "name": "long", + "name": "DurationValue", "namespace": "_types" } } }, { - "name": "score_count", + "name": "type", "required": true, "type": { "kind": "instance_of", "type": { - "name": "long", - "namespace": "_types" + "name": "string", + "namespace": "_builtins" } } }, { - "name": "compute_max_score", + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "QueryProfile", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L128-L134" + }, + { + "kind": "interface", + "name": { + "name": "QueryBreakdown", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "advance", "required": true, "type": { "kind": "instance_of", @@ -73929,7 +74819,7 @@ } }, { - "name": "compute_max_score_count", + "name": "advance_count", "required": true, "type": { "kind": "instance_of", @@ -73940,7 +74830,7 @@ } }, { - "name": "set_min_competitive_score", + "name": "build_scorer", "required": true, "type": { "kind": "instance_of", @@ -73951,7 +74841,7 @@ } }, { - "name": "set_min_competitive_score_count", + "name": "build_scorer_count", "required": true, "type": { "kind": "instance_of", @@ -73960,230 +74850,185 @@ "namespace": "_types" } } - } - ], - "specLocation": "_global/search/_types/profile.ts#L97-L116" - }, - { - "kind": "interface", - "name": { - "name": "FetchProfile", - "namespace": "_global.search._types" - }, - "properties": [ + }, { - "name": "type", + "name": "create_weight", "required": true, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "long", + "namespace": "_types" } } }, { - "name": "description", + "name": "create_weight_count", "required": true, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "long", + "namespace": "_types" } } }, { - "name": "time_in_nanos", + "name": "match", "required": true, "type": { - "generics": [ - { - "kind": "instance_of", - "type": { - "name": "UnitNanos", - "namespace": "_types" - } - } - ], "kind": "instance_of", "type": { - "name": "DurationValue", + "name": "long", "namespace": "_types" } } }, { - "name": "breakdown", + "name": "match_count", "required": true, "type": { "kind": "instance_of", "type": { - "name": "FetchProfileBreakdown", - "namespace": "_global.search._types" + "name": "long", + "namespace": "_types" } } }, { - "name": "debug", - "required": false, + "name": "shallow_advance", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "FetchProfileDebug", - "namespace": "_global.search._types" + "name": "long", + "namespace": "_types" } } }, { - "name": "children", - "required": false, + "name": "shallow_advance_count", + "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "FetchProfile", - "namespace": "_global.search._types" - } + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" } } - } - ], - "specLocation": "_global/search/_types/profile.ts#L139-L146" - }, - { - "kind": "interface", - "name": { - "name": "FetchProfileBreakdown", - "namespace": "_global.search._types" - }, - "properties": [ + }, { - "name": "load_source", - "required": false, + "name": "next_doc", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "name": "load_source_count", - "required": false, + "name": "next_doc_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "name": "load_stored_fields", - "required": false, + "name": "score", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "name": "load_stored_fields_count", - "required": false, + "name": "score_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "name": "next_reader", - "required": false, + "name": "compute_max_score", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "name": "next_reader_count", - "required": false, + "name": "compute_max_score_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "name": "process_count", - "required": false, + "name": "count_weight", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "name": "process", - "required": false, + "name": "count_weight_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } - } - ], - "specLocation": "_global/search/_types/profile.ts#L148-L157" - }, - { - "kind": "interface", - "name": { - "name": "FetchProfileDebug", - "namespace": "_global.search._types" - }, - "properties": [ + }, { - "name": "stored_fields", - "required": false, + "name": "set_min_competitive_score", + "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" } } }, { - "name": "fast_path", - "required": false, + "name": "set_min_competitive_score_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } } ], - "specLocation": "_global/search/_types/profile.ts#L159-L162" + "specLocation": "_global/search/_types/profile.ts#L105-L126" }, { "kind": "type_alias", @@ -75715,21 +76560,6 @@ } } }, - { - "kind": "type_alias", - "name": { - "name": "NodeId", - "namespace": "_types" - }, - "specLocation": "_types/common.ts#L63-L63", - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - }, { "kind": "type_alias", "name": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 2a906773f..9b563272e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -33215,7 +33215,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L23-L36" + "specLocation": "_global/search/_types/profile.ts#L26-L39" }, { "kind": "interface", @@ -33303,7 +33303,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L77-L84" + "specLocation": "_global/search/_types/profile.ts#L85-L92" }, { "kind": "interface", @@ -33625,9 +33625,53 @@ "namespace": "_builtins" } } + }, + { + "name": "brute_force_used", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "dynamic_pruning_attempted", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "dynamic_pruning_used", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "skipped_due_to_no_data", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } } ], - "specLocation": "_global/search/_types/profile.ts#L39-L68" + "specLocation": "_global/search/_types/profile.ts#L42-L76" }, { "kind": "interface", @@ -33681,7 +33725,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L70-L75" + "specLocation": "_global/search/_types/profile.ts#L78-L83" }, { "kind": "enum", @@ -33769,7 +33813,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L86-L91" + "specLocation": "_global/search/_types/profile.ts#L94-L99" }, { "kind": "interface", @@ -34189,156 +34233,200 @@ { "kind": "interface", "name": { - "name": "DirectGenerator", + "name": "DfsKnnProfile", "namespace": "_global.search._types" }, "properties": [ { - "description": "The field to fetch the candidate suggestions from.\nNeeds to be set globally or per suggestion.", - "name": "field", - "required": true, + "name": "vector_operations_count", + "required": false, "type": { "kind": "instance_of", "type": { - "name": "Field", + "name": "long", "namespace": "_types" } } }, { - "description": "The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.\nCan only be `1` or `2`.", - "name": "max_edits", - "required": false, - "serverDefault": 2, + "name": "query", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnQueryProfileResult", + "namespace": "_global.search._types" + } + } + } + }, + { + "name": "rewrite_time", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "description": "A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.\nCan improve accuracy at the cost of performance.", - "name": "max_inspections", + "name": "collector", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnCollectorResult", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L181-L186" + }, + { + "kind": "interface", + "name": { + "name": "DfsProfile", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "statistics", "required": false, - "serverDefault": 5, "type": { "kind": "instance_of", "type": { - "name": "float", - "namespace": "_types" + "name": "DfsStatisticsProfile", + "namespace": "_global.search._types" } } }, { - "description": "The maximum threshold in number of documents in which a suggest text token can exist in order to be included.\nThis can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.\nCan be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.\nIf a value higher than 1 is specified, then fractional can not be specified.", - "name": "max_term_freq", + "name": "knn", "required": false, - "serverDefault": 0.01, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "DfsKnnProfile", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L154-L157" + }, + { + "kind": "interface", + "name": { + "name": "DfsStatisticsBreakdown", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "collection_statistics", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "float", + "name": "long", "namespace": "_types" } } }, { - "description": "The minimal threshold in number of documents a suggestion should appear in.\nThis can improve quality by only suggesting high frequency terms.\nCan be specified as an absolute number or as a relative percentage of number of documents.\nIf a value higher than 1 is specified, the number cannot be fractional.", - "name": "min_doc_freq", - "required": false, - "serverDefault": 0, + "name": "collection_statistics_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "float", + "name": "long", "namespace": "_types" } } }, { - "description": "The minimum length a suggest text term must have in order to be included.", - "name": "min_word_length", - "required": false, - "serverDefault": 4, + "name": "create_weight", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "description": "A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer.", - "name": "post_filter", - "required": false, + "name": "create_weight_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "long", + "namespace": "_types" } } }, { - "description": "A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.\nThis filter is applied to the original token before candidates are generated.", - "name": "pre_filter", - "required": false, + "name": "rewrite", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "long", + "namespace": "_types" } } }, { - "description": "The number of minimal prefix characters that must match in order be a candidate suggestions.\nIncreasing this number improves spellcheck performance.", - "name": "prefix_length", - "required": false, - "serverDefault": 1, + "name": "rewrite_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "description": "The maximum corrections to be returned per suggest text token.", - "name": "size", - "required": false, + "name": "term_statistics", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } }, { - "description": "Controls what suggestions are included on the suggestions generated on each shard.", - "name": "suggest_mode", - "required": false, - "serverDefault": "missing", + "name": "term_statistics_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "SuggestMode", + "name": "long", "namespace": "_types" } } } ], - "specLocation": "_global/search/_types/suggester.ts#L268-L331" + "specLocation": "_global/search/_types/profile.ts#L170-L179" }, { "kind": "interface", "name": { - "name": "FetchProfile", + "name": "DfsStatisticsProfile", "namespace": "_global.search._types" }, "properties": [ @@ -34364,6 +34452,17 @@ } } }, + { + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "name": "time_in_nanos", "required": true, @@ -34390,7 +34489,7 @@ "type": { "kind": "instance_of", "type": { - "name": "FetchProfileBreakdown", + "name": "DfsStatisticsBreakdown", "namespace": "_global.search._types" } } @@ -34399,10 +34498,17 @@ "name": "debug", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "FetchProfileDebug", - "namespace": "_global.search._types" + "kind": "dictionary_of", + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "singleKey": false, + "value": { + "kind": "user_defined_value" } } }, @@ -34414,36 +34520,39 @@ "value": { "kind": "instance_of", "type": { - "name": "FetchProfile", + "name": "DfsStatisticsProfile", "namespace": "_global.search._types" } } } } ], - "specLocation": "_global/search/_types/profile.ts#L139-L146" + "specLocation": "_global/search/_types/profile.ts#L159-L167" }, { "kind": "interface", "name": { - "name": "FetchProfileBreakdown", + "name": "DirectGenerator", "namespace": "_global.search._types" }, "properties": [ { - "name": "load_source", - "required": false, + "description": "The field to fetch the candidate suggestions from.\nNeeds to be set globally or per suggestion.", + "name": "field", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "Field", "namespace": "_types" } } }, { - "name": "load_source_count", + "description": "The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.\nCan only be `1` or `2`.", + "name": "max_edits", "required": false, + "serverDefault": 2, "type": { "kind": "instance_of", "type": { @@ -34453,41 +34562,49 @@ } }, { - "name": "load_stored_fields", + "description": "A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.\nCan improve accuracy at the cost of performance.", + "name": "max_inspections", "required": false, + "serverDefault": 5, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "float", "namespace": "_types" } } }, { - "name": "load_stored_fields_count", + "description": "The maximum threshold in number of documents in which a suggest text token can exist in order to be included.\nThis can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.\nCan be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.\nIf a value higher than 1 is specified, then fractional can not be specified.", + "name": "max_term_freq", "required": false, + "serverDefault": 0.01, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "float", "namespace": "_types" } } }, { - "name": "next_reader", + "description": "The minimal threshold in number of documents a suggestion should appear in.\nThis can improve quality by only suggesting high frequency terms.\nCan be specified as an absolute number or as a relative percentage of number of documents.\nIf a value higher than 1 is specified, the number cannot be fractional.", + "name": "min_doc_freq", "required": false, + "serverDefault": 0, "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "float", "namespace": "_types" } } }, { - "name": "next_reader_count", + "description": "The minimum length a suggest text term must have in order to be included.", + "name": "min_word_length", "required": false, + "serverDefault": 4, "type": { "kind": "instance_of", "type": { @@ -34497,29 +34614,255 @@ } }, { - "name": "process_count", + "description": "A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer.", + "name": "post_filter", "required": false, "type": { "kind": "instance_of", "type": { - "name": "integer", - "namespace": "_types" + "name": "string", + "namespace": "_builtins" } } }, { - "name": "process", + "description": "A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.\nThis filter is applied to the original token before candidates are generated.", + "name": "pre_filter", "required": false, "type": { "kind": "instance_of", "type": { - "name": "integer", - "namespace": "_types" + "name": "string", + "namespace": "_builtins" } } - } - ], - "specLocation": "_global/search/_types/profile.ts#L148-L157" + }, + { + "description": "The number of minimal prefix characters that must match in order be a candidate suggestions.\nIncreasing this number improves spellcheck performance.", + "name": "prefix_length", + "required": false, + "serverDefault": 1, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "The maximum corrections to be returned per suggest text token.", + "name": "size", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "Controls what suggestions are included on the suggestions generated on each shard.", + "name": "suggest_mode", + "required": false, + "serverDefault": "missing", + "type": { + "kind": "instance_of", + "type": { + "name": "SuggestMode", + "namespace": "_types" + } + } + } + ], + "specLocation": "_global/search/_types/suggester.ts#L268-L331" + }, + { + "kind": "interface", + "name": { + "name": "FetchProfile", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "description", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "time_in_nanos", + "required": true, + "type": { + "kind": "instance_of", + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } + } + ], + "type": { + "name": "DurationValue", + "namespace": "_types" + } + } + }, + { + "name": "breakdown", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "FetchProfileBreakdown", + "namespace": "_global.search._types" + } + } + }, + { + "name": "debug", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FetchProfileDebug", + "namespace": "_global.search._types" + } + } + }, + { + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "FetchProfile", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L230-L237" + }, + { + "kind": "interface", + "name": { + "name": "FetchProfileBreakdown", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "load_source", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "load_source_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "load_stored_fields", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "load_stored_fields_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "next_reader", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "next_reader_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "process_count", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "process", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L239-L248" }, { "kind": "interface", @@ -34554,7 +34897,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L159-L162" + "specLocation": "_global/search/_types/profile.ts#L250-L253" }, { "kind": "interface", @@ -35332,13 +35675,10 @@ }, "singleKey": false, "value": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "double", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" } } } @@ -35654,167 +35994,580 @@ } }, { - "name": "explain", - "required": false, + "name": "explain", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "highlight", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Highlight", + "namespace": "_global.search._types" + } + } + }, + { + "name": "ignore_unmapped", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "script_fields", + "required": false, + "type": { + "kind": "dictionary_of", + "key": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + }, + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "ScriptField", + "namespace": "_types" + } + } + } + }, + { + "name": "seq_no_primary_term", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "fields", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Fields", + "namespace": "_types" + } + } + }, + { + "description": "How the inner hits should be sorted per `inner_hits`.\nBy default, inner hits are sorted by score.", + "name": "sort", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Sort", + "namespace": "_types" + } + } + }, + { + "name": "_source", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "SourceConfig", + "namespace": "_global.search._types" + } + } + }, + { + "name": "stored_fields", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Fields", + "namespace": "_types" + } + } + }, + { + "name": "track_scores", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "version", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "_global/search/_types/hits.ts#L107-L141" + }, + { + "kind": "interface", + "name": { + "name": "InnerHitsResult", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "hits", + "required": true, + "type": { + "kind": "instance_of", + "generics": [ + { + "kind": "user_defined_value" + } + ], + "type": { + "name": "HitsMetadata", + "namespace": "_global.search._types" + } + } + } + ], + "specLocation": "_global/search/_types/hits.ts#L85-L87" + }, + { + "kind": "interface", + "name": { + "name": "KnnCollectorResult", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "name", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "reason", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "name": "time_in_nanos", + "required": true, + "type": { + "kind": "instance_of", + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } + } + ], + "type": { + "name": "DurationValue", + "namespace": "_types" + } + } + }, + { + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnCollectorResult", + "namespace": "_global.search._types" + } + } + } + } + ], + "specLocation": "_global/search/_types/profile.ts#L222-L228" + }, + { + "kind": "interface", + "name": { + "name": "KnnQueryProfileBreakdown", + "namespace": "_global.search._types" + }, + "properties": [ + { + "name": "advance", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "advance_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "build_scorer", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "build_scorer_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "compute_max_score", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "compute_max_score_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "count_weight", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "count_weight_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "create_weight", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "create_weight_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "match", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "match_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "next_doc", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "boolean", - "namespace": "_builtins" + "name": "long", + "namespace": "_types" } } }, { - "name": "highlight", - "required": false, + "name": "next_doc_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "Highlight", - "namespace": "_global.search._types" + "name": "long", + "namespace": "_types" } } }, { - "name": "ignore_unmapped", - "required": false, + "name": "score", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "boolean", - "namespace": "_builtins" + "name": "long", + "namespace": "_types" } } }, { - "name": "script_fields", - "required": false, + "name": "score_count", + "required": true, "type": { - "kind": "dictionary_of", - "key": { - "kind": "instance_of", - "type": { - "name": "Field", - "namespace": "_types" - } - }, - "singleKey": false, - "value": { - "kind": "instance_of", - "type": { - "name": "ScriptField", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" } } }, { - "name": "seq_no_primary_term", - "required": false, + "name": "set_min_competitive_score", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "boolean", - "namespace": "_builtins" + "name": "long", + "namespace": "_types" } } }, { - "name": "fields", - "required": false, + "name": "set_min_competitive_score_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "Fields", + "name": "long", "namespace": "_types" } } }, { - "description": "How the inner hits should be sorted per `inner_hits`.\nBy default, inner hits are sorted by score.", - "name": "sort", - "required": false, + "name": "shallow_advance", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "Sort", + "name": "long", "namespace": "_types" } } }, { - "name": "_source", - "required": false, + "name": "shallow_advance_count", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "SourceConfig", - "namespace": "_global.search._types" + "name": "long", + "namespace": "_types" } } - }, + } + ], + "specLocation": "_global/search/_types/profile.ts#L199-L220" + }, + { + "kind": "interface", + "name": { + "name": "KnnQueryProfileResult", + "namespace": "_global.search._types" + }, + "properties": [ { - "name": "stored_fields", - "required": false, + "name": "type", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "Fields", - "namespace": "_types" + "name": "string", + "namespace": "_builtins" } } }, { - "name": "track_scores", - "required": false, - "serverDefault": false, + "name": "description", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "boolean", + "name": "string", "namespace": "_builtins" } } }, { - "name": "version", + "name": "time", "required": false, "type": { "kind": "instance_of", "type": { - "name": "boolean", - "namespace": "_builtins" + "name": "Duration", + "namespace": "_types" } } - } - ], - "specLocation": "_global/search/_types/hits.ts#L107-L141" - }, - { - "kind": "interface", - "name": { - "name": "InnerHitsResult", - "namespace": "_global.search._types" - }, - "properties": [ + }, { - "name": "hits", + "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { - "kind": "user_defined_value" + "kind": "instance_of", + "type": { + "name": "UnitNanos", + "namespace": "_types" + } } ], "type": { - "name": "HitsMetadata", + "name": "DurationValue", + "namespace": "_types" + } + } + }, + { + "name": "breakdown", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "KnnQueryProfileBreakdown", "namespace": "_global.search._types" } } + }, + { + "name": "debug", + "required": false, + "type": { + "kind": "dictionary_of", + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "singleKey": false, + "value": { + "kind": "user_defined_value" + } + } + }, + { + "name": "children", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "KnnQueryProfileResult", + "namespace": "_global.search._types" + } + } + } } ], - "specLocation": "_global/search/_types/hits.ts#L85-L87" + "specLocation": "_global/search/_types/profile.ts#L188-L196" }, { "kind": "interface", @@ -36414,7 +37167,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L93-L95" + "specLocation": "_global/search/_types/profile.ts#L101-L103" }, { "kind": "interface", @@ -36599,6 +37352,28 @@ } } }, + { + "name": "count_weight", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "count_weight_count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, { "name": "set_min_competitive_score", "required": true, @@ -36622,7 +37397,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L97-L116" + "specLocation": "_global/search/_types/profile.ts#L105-L126" }, { "kind": "interface", @@ -36699,7 +37474,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L118-L124" + "specLocation": "_global/search/_types/profile.ts#L128-L134" }, { "kind": "interface", @@ -36937,7 +37712,7 @@ } } ], - "specLocation": "_global/search/_types/profile.ts#L126-L130" + "specLocation": "_global/search/_types/profile.ts#L136-L140" }, { "kind": "interface", @@ -36960,6 +37735,39 @@ } } }, + { + "name": "cluster", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "dfs", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DfsProfile", + "namespace": "_global.search._types" + } + } + }, + { + "name": "fetch", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FetchProfile", + "namespace": "_global.search._types" + } + } + }, { "name": "id", "required": true, @@ -36971,6 +37779,28 @@ } } }, + { + "name": "index", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + }, + { + "name": "node_id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "NodeId", + "namespace": "_types" + } + } + }, { "name": "searches", "required": true, @@ -36986,18 +37816,18 @@ } }, { - "name": "fetch", - "required": false, + "name": "shard_id", + "required": true, "type": { "kind": "instance_of", "type": { - "name": "FetchProfile", - "namespace": "_global.search._types" + "name": "long", + "namespace": "_types" } } } ], - "specLocation": "_global/search/_types/profile.ts#L132-L137" + "specLocation": "_global/search/_types/profile.ts#L142-L152" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 74a914017..e6d7d32ee 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1325,6 +1325,10 @@ export interface SearchAggregationProfileDebug { segments_counted?: integer segments_collected?: integer map_reducer?: string + brute_force_used?: integer + dynamic_pruning_attempted?: integer + dynamic_pruning_used?: integer + skipped_due_to_no_data?: integer } export interface SearchAggregationProfileDelegateDebugFilter { @@ -1377,6 +1381,39 @@ export interface SearchCompletionSuggester extends SearchSuggesterBase { export type SearchContext = string | GeoLocation +export interface SearchDfsKnnProfile { + vector_operations_count?: long + query: SearchKnnQueryProfileResult[] + rewrite_time: long + collector: SearchKnnCollectorResult[] +} + +export interface SearchDfsProfile { + statistics?: SearchDfsStatisticsProfile + knn?: SearchDfsKnnProfile[] +} + +export interface SearchDfsStatisticsBreakdown { + collection_statistics: long + collection_statistics_count: long + create_weight: long + create_weight_count: long + rewrite: long + rewrite_count: long + term_statistics: long + term_statistics_count: long +} + +export interface SearchDfsStatisticsProfile { + type: string + description: string + time?: Duration + time_in_nanos: DurationValue + breakdown: SearchDfsStatisticsBreakdown + debug?: Record + children?: SearchDfsStatisticsProfile[] +} + export interface SearchDirectGenerator { field: Field max_edits?: integer @@ -1484,7 +1521,7 @@ export interface SearchHit { fields?: Record highlight?: Record inner_hits?: Record - matched_queries?: string[] | Record + matched_queries?: string[] | Record _nested?: SearchNestedIdentity _ignored?: string[] ignored_field_values?: Record @@ -1528,6 +1565,47 @@ export interface SearchInnerHitsResult { hits: SearchHitsMetadata } +export interface SearchKnnCollectorResult { + name: string + reason: string + time?: Duration + time_in_nanos: DurationValue + children?: SearchKnnCollectorResult[] +} + +export interface SearchKnnQueryProfileBreakdown { + advance: long + advance_count: long + build_scorer: long + build_scorer_count: long + compute_max_score: long + compute_max_score_count: long + count_weight: long + count_weight_count: long + create_weight: long + create_weight_count: long + match: long + match_count: long + next_doc: long + next_doc_count: long + score: long + score_count: long + set_min_competitive_score: long + set_min_competitive_score_count: long + shallow_advance: long + shallow_advance_count: long +} + +export interface SearchKnnQueryProfileResult { + type: string + description: string + time?: Duration + time_in_nanos: DurationValue + breakdown: SearchKnnQueryProfileBreakdown + debug?: Record + children?: SearchKnnQueryProfileResult[] +} + export interface SearchLaplaceSmoothingModel { alpha: double } @@ -1618,6 +1696,8 @@ export interface SearchQueryBreakdown { score_count: long compute_max_score: long compute_max_score_count: long + count_weight: long + count_weight_count: long set_min_competitive_score: long set_min_competitive_score_count: long } @@ -1658,9 +1738,14 @@ export interface SearchSearchProfile { export interface SearchShardProfile { aggregations: SearchAggregationProfile[] + cluster: string + dfs?: SearchDfsProfile + fetch?: SearchFetchProfile id: string + index: IndexName + node_id: NodeId searches: SearchSearchProfile[] - fetch?: SearchFetchProfile + shard_id: long } export interface SearchSmoothingModelContainer { diff --git a/specification/_global/search/_types/hits.ts b/specification/_global/search/_types/hits.ts index 20bae0341..6a2ac339e 100644 --- a/specification/_global/search/_types/hits.ts +++ b/specification/_global/search/_types/hits.ts @@ -49,7 +49,7 @@ export class Hit { fields?: Dictionary highlight?: Dictionary inner_hits?: Dictionary - matched_queries?: string[] | Dictionary + matched_queries?: string[] | Dictionary _nested?: NestedIdentity _ignored?: string[] ignored_field_values?: Dictionary diff --git a/specification/_global/search/_types/profile.ts b/specification/_global/search/_types/profile.ts index 9cd9483d0..e987fb532 100644 --- a/specification/_global/search/_types/profile.ts +++ b/specification/_global/search/_types/profile.ts @@ -17,8 +17,11 @@ * under the License. */ +import { Dictionary } from '@spec_utils/Dictionary' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' +import { IndexName, NodeId } from '@_types/common' import { integer, long } from '@_types/Numeric' -import { DurationValue, UnitNanos } from '@_types/Time' +import { Duration, DurationValue, UnitNanos } from '@_types/Time' export class AggregationBreakdown { build_aggregation: long @@ -65,6 +68,11 @@ export class AggregationProfileDebug { segments_counted?: integer segments_collected?: integer map_reducer?: string + // global ords cardinality aggregator + brute_force_used?: integer + dynamic_pruning_attempted?: integer + dynamic_pruning_used?: integer + skipped_due_to_no_data?: integer } export class AggregationProfileDelegateDebugFilter { @@ -111,6 +119,8 @@ export class QueryBreakdown { score_count: long compute_max_score: long compute_max_score_count: long + count_weight: long + count_weight_count: long set_min_competitive_score: long set_min_competitive_score_count: long } @@ -131,9 +141,90 @@ export class SearchProfile { export class ShardProfile { aggregations: AggregationProfile[] + cluster: string + dfs?: DfsProfile + fetch?: FetchProfile id: string + index: IndexName + node_id: NodeId searches: SearchProfile[] - fetch?: FetchProfile + shard_id: long +} + +export class DfsProfile { + statistics?: DfsStatisticsProfile + knn?: DfsKnnProfile[] +} + +export class DfsStatisticsProfile { + type: string + description: string + time?: Duration + time_in_nanos: DurationValue + breakdown: DfsStatisticsBreakdown + debug?: Dictionary + children?: DfsStatisticsProfile[] +} + +// This is a Map in ES. Below are the known fields. +export class DfsStatisticsBreakdown { + collection_statistics: long + collection_statistics_count: long + create_weight: long + create_weight_count: long + rewrite: long + rewrite_count: long + term_statistics: long + term_statistics_count: long +} + +export class DfsKnnProfile { + vector_operations_count?: long + query: KnnQueryProfileResult[] + rewrite_time: long + collector: KnnCollectorResult[] +} + +export class KnnQueryProfileResult { + type: string + description: string + time?: Duration + time_in_nanos: DurationValue + breakdown: KnnQueryProfileBreakdown + debug?: Dictionary + children?: KnnQueryProfileResult[] +} + +// This is a Map in ES. Below are the known fields. +export class KnnQueryProfileBreakdown { + advance: long + advance_count: long + build_scorer: long + build_scorer_count: long + compute_max_score: long + compute_max_score_count: long + count_weight: long + count_weight_count: long + create_weight: long + create_weight_count: long + match: long + match_count: long + next_doc: long + next_doc_count: long + score: long + score_count: long + set_min_competitive_score: long + set_min_competitive_score_count: long + shallow_advance: long + shallow_advance_count: long +} + +export class KnnCollectorResult { + name: string + reason: string + time?: Duration + time_in_nanos: DurationValue + children?: KnnCollectorResult[] } export class FetchProfile {