浏览代码

Fixed id's of 'worked example' in scripted metric aggs docs (#22430)

Johannes Kanavin 8 年之前
父节点
当前提交
27c57aeebe
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/reference/aggregations/metrics/scripted-metric-aggregation.asciidoc

+ 2 - 2
docs/reference/aggregations/metrics/scripted-metric-aggregation.asciidoc

@@ -156,9 +156,9 @@ PUT /transactions/stock/_bulk?refresh
 {"type": "sale","amount": 80}
 {"index":{"_id":2}}
 {"type": "cost","amount": 10}
-{"index":{"_id":2}}
+{"index":{"_id":3}}
 {"type": "cost","amount": 30}
-{"index":{"_id":2}}
+{"index":{"_id":4}}
 {"type": "sale","amount": 130}
 --------------------------------------------------
 // CONSOLE