Docs: Fix curl statements in query-cache.asciidoc

Closes #7989
This commit is contained in:
Henrik Nordvik 2014-10-05 15:25:54 +02:00 committed by Clinton Gormley
parent 9e7fba9a7b
commit fdbb62b1ab
1 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ caching on a *per-query* basis. If set, it overrides the index-level setting:
[source,json] [source,json]
----------------------------- -----------------------------
curl localhost:9200/my_index/_search?search_type=count&query_cache=true -d' curl 'localhost:9200/my_index/_search?search_type=count&query_cache=true' -d'
{ {
"aggs": { "aggs": {
"popular_colors": { "popular_colors": {
@ -132,12 +132,12 @@ by index, with the <<indices-stats,`indices-stats`>> API:
[source,json] [source,json]
------------------------ ------------------------
curl -XPOST 'localhost:9200/_stats/query_cache?pretty&human' curl 'localhost:9200/_stats/query_cache?pretty&human'
------------------------ ------------------------
or by node with the <<cluster-nodes-stats,`nodes-stats`>> API: or by node with the <<cluster-nodes-stats,`nodes-stats`>> API:
[source,json] [source,json]
------------------------ ------------------------
curl -XPOST 'localhost:9200/_nodes/stats/indices/query_cache?pretty&human' curl 'localhost:9200/_nodes/stats/indices/query_cache?pretty&human'
------------------------ ------------------------