Skip to content

Commit a21b658

Browse files
committed
Fix snippets
One bad path and one missing file. This fixes the bad path and replaces the missing file with `// AUTOSENSE` rather than overriding the file.
1 parent a8112fd commit a21b658

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

054_Query_DSL/75_Combining_queries_together.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ TIP: 如果没有 `must` 语句,那么至少需要能够匹配其中的一条
114114
}
115115
}
116116
--------------------------------------------------
117-
// SENSE: 054_Query_DSL/70_bool_query.json
117+
// SENSE: 054_Query_DSL/70_Bool_query.json
118118

119119
<1> `term` 查询被放置在 `constant_score` 中,转成不评分的 filter。这种方式可以用来取代只有 filter 语句的 `bool` 查询。

300_Aggregations/65_percentiles.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ POST /website/logs/_bulk
6161
{ "index": {}}
6262
{ "latency" : 319, "zone" : "EU", "timestamp" : "2014-10-29" }
6363
----
64-
// SENSE: 300_Aggregations/65_percentiles.json
64+
// AUTOSENSE
6565

6666
数据有三个值:延时、数据中心的区域以及时间戳。让我们对数据全集进行 _百分位_ 操作以获得数据分布情况的直观感受:
6767

@@ -84,7 +84,7 @@ GET /website/logs/_search
8484
}
8585
}
8686
----
87-
// SENSE: 300_Aggregations/65_percentiles.json
87+
// AUTOSENSE
8888
<1> `percentiles` 度量被应用到 +latency+ 延时字段。
8989
<2> 为了比较,我们对相同字段使用 `avg` 度量。
9090

@@ -142,7 +142,7 @@ GET /website/logs/_search
142142
}
143143
}
144144
----
145-
// SENSE: 300_Aggregations/65_percentiles.json
145+
// AUTOSENSE
146146
<1> 首先根据区域我们将延时分到不同的桶中。
147147
<2> 再计算每个区域的百分位数值。
148148
<3> +percents+ 参数接受了我们想返回的一组百分位数,因为我们只对长的延时感兴趣。
@@ -226,7 +226,7 @@ GET /website/logs/_search
226226
}
227227
}
228228
----
229-
// SENSE: 300_Aggregations/65_percentiles.json
229+
// AUTOSENSE
230230
<1> `percentile_ranks` 度量接受一组我们希望分级的数值。
231231

232232
在聚合运行后,我们能得到两个值:

0 commit comments

Comments
 (0)