Skip to content

Commit d0a0bf8

Browse files
committed
Support indices and shards on nodes stats cache
Signed-off-by: Thomas Farr <[email protected]>
1 parent 142e80d commit d0a0bf8

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

spec/schemas/nodes.stats.yaml

+27-6
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ components:
145145
admission_control:
146146
$ref: '#/components/schemas/ShardAdmissionControlStats'
147147
caches:
148-
$ref: '#/components/schemas/ShardCachesStats'
148+
$ref: '#/components/schemas/CachesStats'
149149
Http:
150150
type: object
151151
properties:
@@ -470,11 +470,11 @@ components:
470470
additionalProperties:
471471
type: integer
472472
format: int64
473-
ShardCachesStats:
473+
CachesStats:
474474
type: object
475475
additionalProperties:
476-
$ref: '#/components/schemas/ShardCacheStats'
477-
ShardCacheStats:
476+
$ref: '#/components/schemas/CacheStats'
477+
CacheStatsBase:
478478
type: object
479479
properties:
480480
size:
@@ -493,8 +493,29 @@ components:
493493
item_count:
494494
type: integer
495495
format: int64
496-
store_name:
497-
type: string
496+
CacheStats:
497+
allOf:
498+
- $ref: '#/components/schemas/CacheStatsBase'
499+
- type: object
500+
properties:
501+
store_name:
502+
type: string
503+
indices:
504+
$ref: '#/components/schemas/CacheIndicesStats'
505+
shards:
506+
$ref: '#/components/schemas/CacheShardStats'
507+
CacheIndicesStats:
508+
allOf:
509+
- $ref: '#/components/schemas/CacheStatsBase'
510+
- type: object
511+
properties:
512+
shards:
513+
$ref: '#/components/schemas/CacheShardStats'
514+
CacheShardStats:
515+
allOf:
516+
- $ref: '#/components/schemas/CacheStatsBase'
517+
- type: object
518+
properties: {}
498519
AdaptiveSelection:
499520
type: object
500521
properties:

tests/default/_core/search/hybrid_query_pagination.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml
22

33
description: Test hybrid query with pagination_depth property.
44
version: '>=2.19'
5+
warnings:
6+
invalid-path-detected: false
57
prologues:
68
- path: /books
79
method: PUT

0 commit comments

Comments
 (0)