Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 8bcc210

Browse files
committed
Edited 300_Aggregations/45_filtering.asciidoc with Atlas code editor
1 parent 261ff15 commit 8bcc210

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: 300_Aggregations/45_filtering.asciidoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A natural extension to aggregation scoping is filtering. Because the aggregatio
55
operates in the context of the query scope, any filter applied to the query
66
will also apply to the aggregation.
77

8-
[float]
8+
[float="true"]
99
=== Filtered Query
1010
If we want to find all cars over $10,000 and also calculate the average price
1111
for those cars,((("filtering", "serch query results")))((("filtered query")))((("queries", "filtered"))) we can simply use a `filtered` query:
@@ -39,7 +39,7 @@ query, as we discussed in the previous chapter. The query (which happens to inc
3939
a filter) returns a certain subset of documents, and the aggregation operates
4040
on those documents.
4141

42-
[float]
42+
[float="true"]
4343
=== Filter Bucket
4444

4545
But what if you would like to filter just the aggregation results?((("filtering", "aggregation results, not the query")))((("aggregations", "filtering"))) Imagine we
@@ -95,7 +95,7 @@ Since the `filter` bucket operates like any other bucket, you are free to nest
9595
other buckets and metrics inside. All nested components will "inherit" the filter.
9696
This allows you to filter selective portions of the aggregation as required.
9797

98-
[float]
98+
[float="true"]
9999
=== Post Filter
100100

101101
So far, we have a way to filter both the search results and aggregations (a
@@ -168,7 +168,7 @@ The `post_filter` should be used only in combination with aggregations, and only
168168
when you need differential filtering.
169169
====
170170

171-
[float]
171+
[float="true"]
172172
=== Recap
173173

174174
Choosing the appropriate type of filtering--search hits, aggregations, or

0 commit comments

Comments
 (0)