Skip to content

Commit

Permalink
Clear file cache was added in OpenSearch 2.8.0.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Jul 11, 2024
1 parent 0e90716 commit 594a9d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/namespaces/indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2766,6 +2766,7 @@ components:
$ref: '../schemas/_common.yaml#/components/schemas/Fields'
style: form
indices.clear_cache::query.file:
x-version-added: '2.8'
in: query
name: file
description: If true, clears the unused entries from the file cache on nodes with the Search role.
Expand Down
11 changes: 10 additions & 1 deletion tests/indices/cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ chapters:
expand_wildcards: none
fielddata: true
fields: '*'
file: false
index:
- movies
ignore_unavailable: true
Expand All @@ -32,6 +31,16 @@ chapters:
status: 200
payload:
_shards: {}
- synopsis: Clear all cache, file=true (POST).
version: '>= 2.8.0'
path: /_cache/clear
method: POST
parameters:
file: true
response:
status: 200
payload:
_shards: {}
- synopsis: Clear index cache (POST).
path: /{index}/_cache/clear
method: POST
Expand Down

0 comments on commit 594a9d3

Please sign in to comment.