Skip to content

Commit 5ccd7a3

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 53ec34a commit 5ccd7a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

054_Query_DSL/75_Combining_queries_together.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ will be identical, but it may aid in query simplicity/clarity.
145145
}
146146
}
147147
--------------------------------------------------
148-
// SENSE: 054_Query_DSL/70_bool_query.json
148+
// SENSE: 054_Query_DSL/70_Bool_query.json
149149

150150
<1> A `term` query is placed inside the `constant_score`, converting it to a
151151
non-scoring filter. This method can be used in place of a `bool` query which only

300_Aggregations/65_percentiles.asciidoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ POST /website/logs/_bulk
7676
{ "index": {}}
7777
{ "latency" : 319, "zone" : "EU", "timestamp" : "2014-10-29" }
7878
----
79-
// SENSE: 300_Aggregations/65_percentiles.json
79+
// AUTOSENSE
8080

8181
This data contains three values: a latency, a data center zone, and a date
8282
timestamp. Let's run +percentiles+ over the whole dataset to get a feel for
@@ -101,7 +101,7 @@ GET /website/logs/_search
101101
}
102102
}
103103
----
104-
// SENSE: 300_Aggregations/65_percentiles.json
104+
// AUTOSENSE
105105
<1> The `percentiles` metric is applied to the +latency+ field.
106106
<2> For comparison, we also execute an `avg` metric on the same field.
107107

@@ -163,7 +163,7 @@ GET /website/logs/_search
163163
}
164164
}
165165
----
166-
// SENSE: 300_Aggregations/65_percentiles.json
166+
// AUTOSENSE
167167
<1> First we separate our latencies into buckets, depending on their zone.
168168
<2> Then we calculate the percentiles per zone.
169169
<3> The +percents+ parameter accepts an array of percentiles that we want returned,
@@ -254,7 +254,7 @@ GET /website/logs/_search
254254
}
255255
}
256256
----
257-
// SENSE: 300_Aggregations/65_percentiles.json
257+
// AUTOSENSE
258258
<1> The `percentile_ranks` metric accepts an array of values that you want ranks for.
259259

260260
After running this aggregation, we get two values back:

0 commit comments

Comments
 (0)