Skip to content

Commit

Permalink
[DOCS] Fix shard request cache docs
Browse files Browse the repository at this point in the history
Docs have been changed to reflect the fact that shard request cache is now enabled by default

Closes #19695
  • Loading branch information
colings86 committed Aug 11, 2016
1 parent 522b137 commit 2904562
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/reference/modules/indices/request_cache.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ where `size=0`, so it will not cache `hits`,
but it will cache `hits.total`, <<search-aggregations,aggregations>>, and
<<search-suggesters,suggestions>>.
Queries that use `now` (see <<date-math>>) cannot be cached.
Most queries that use `now` (see <<date-math>>) cannot be cached.
===================================

[float]
Expand All @@ -46,17 +46,17 @@ curl -XPOST 'localhost:9200/kimchy,elasticsearch/_cache/clear?request_cache=true
------------------------

[float]
==== Enabling caching by default
==== Enabling and disabling caching

The cache is not enabled by default, but can be enabled when creating a new
The cache is enabled by default, but can be disabled when creating a new
index as follows:

[source,js]
-----------------------------
curl -XPUT localhost:9200/my_index -d'
{
"settings": {
"index.requests.cache.enable": true
"index.requests.cache.enable": false
}
}
'
Expand All @@ -73,7 +73,7 @@ curl -XPUT localhost:9200/my_index/_settings -d'
-----------------------------

[float]
==== Enabling caching per request
==== Enabling and disabling caching per request

The `request_cache` query-string parameter can be used to enable or disable
caching on a *per-request* basis. If set, it overrides the index-level setting:
Expand Down

0 comments on commit 2904562

Please sign in to comment.