From 707025fb7af81505fc39ff4d64676fdbe93fffaa Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Wed, 31 Dec 2014 15:54:07 +0500 Subject: [PATCH] [Docs] fix curl examples in Nodes Stats docs Closes #9118 --- docs/reference/cluster/nodes-stats.asciidoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/reference/cluster/nodes-stats.asciidoc b/docs/reference/cluster/nodes-stats.asciidoc index 759d0996902..dbb63c7e9fd 100644 --- a/docs/reference/cluster/nodes-stats.asciidoc +++ b/docs/reference/cluster/nodes-stats.asciidoc @@ -82,14 +82,14 @@ level or on index level. [source,js] -------------------------------------------------- # Node Stats -curl localhost:9200/_nodes/stats/indices/?fields=field1,field2&pretty +curl -XGET 'http://localhost:9200/_nodes/stats/indices/?fields=field1,field2&pretty' # Indices Stat -curl localhost:9200/_stats/fielddata/?fields=field1,field2&pretty +curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field1,field2&pretty' # You can use wildcards for field names -curl localhost:9200/_stats/fielddata/?fields=field*&pretty -curl localhost:9200/_nodes/stats/indices/?fields=field*&pretty +curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field*&pretty' +curl -XGET 'http://localhost:9200/_nodes/stats/indices/?fields=field*&pretty' -------------------------------------------------- [float] @@ -102,8 +102,8 @@ on this node. [source,js] -------------------------------------------------- # All groups with all stats -curl localhost:9200/_nodes/stats?pretty&groups=_all +curl -XGET 'http://localhost:9200/_nodes/stats?pretty&groups=_all' # Some groups from just the indices stats -curl localhost:9200/_nodes/stats/indices?pretty&groups=foo,bar +curl -XGET 'http://localhost:9200/_nodes/stats/indices?pretty&groups=foo,bar' --------------------------------------------------