Skip to content

Commit 58fbbb7

Browse files
Antonio Bonuccelliclintongormley
authored andcommitted
Docs: adding missing single quote on PUT index request
Closes elastic#10876
1 parent 1aba2e6 commit 58fbbb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/reference/search/aggregations/metrics/scripted-metric-aggregation.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,24 +91,28 @@ $ curl -XPUT 'http://localhost:9200/transactions/stock/1' -d '
9191
"type": "sale",
9292
"amount": 80
9393
}
94+
'
9495
9596
$ curl -XPUT 'http://localhost:9200/transactions/stock/2' -d '
9697
{
9798
"type": "cost",
9899
"amount": 10
99100
}
101+
'
100102
101103
$ curl -XPUT 'http://localhost:9200/transactions/stock/3' -d '
102104
{
103105
"type": "cost",
104106
"amount": 30
105107
}
108+
'
106109
107110
$ curl -XPUT 'http://localhost:9200/transactions/stock/4' -d '
108111
{
109112
"type": "sale",
110113
"amount": 130
111114
}
115+
'
112116
--------------------------------------------------
113117

114118
Lets say that documents 1 and 3 end up on shard A and documents 2 and 4 end up on shard B. The following is a breakdown of what the aggregation result is

0 commit comments

Comments
 (0)