Skip to content

Commit d7c0b37

Browse files
authored
[DOCS] Edits frequent items aggregation (elastic#91564)
1 parent e144722 commit d7c0b37

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/reference/aggregations/bucket/frequent-items-aggregation.asciidoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ might be returned if their support values are different.
2424

2525
The runtime of the aggregation depends on the data and the provided parameters.
2626
It might take a significant time for the aggregation to complete. For this
27-
reason, it is recommended to use <<async-search, async search>> to run your
27+
reason, it is recommended to use <<async-search,async search>> to run your
2828
requests asynchronously.
2929

3030

@@ -73,7 +73,7 @@ aggregation might require a significant amount of system resources.
7373
The minimum set size is the minimum number of items the set needs to contain. A
7474
value of 1 returns the frequency of single items. Only item sets that contain at
7575
least the number of `minimum_set_size` items are returned. For example, the item
76-
set `orange, banana, apple` is only returned if the minimum set size is 3 or
76+
set `orange, banana, apple` is returned only if the minimum set size is 3 or
7777
lower.
7878

7979
[discrete]
@@ -123,15 +123,15 @@ In the following examples, we use the e-commerce {kib} sample data set.
123123

124124

125125
[discrete]
126-
==== Aggregation with two analized fields
126+
==== Aggregation with two analyzed fields
127127

128128
In the first example, the goal is to find out based on transaction data (1.)
129129
from what product categories the customers purchase products frequently together
130130
and (2.) from which cities they make those purchases. We are interested in sets
131131
with three or more items, and want to see the first three frequent item sets
132132
with the highest support.
133133

134-
Note that we use the <<async-search, async search>> endpoint in this first
134+
Note that we use the <<async-search,async search>> endpoint in this first
135135
example.
136136

137137
[source,console]
@@ -228,8 +228,8 @@ of documents containing the item set by the total number of documents.
228228
The response shows that the categories customers purchase from most frequently
229229
together are `Women's Clothing` and `Women's Shoes` and customers from New York
230230
tend to buy items from these categories frequently togeher. In other words,
231-
customers who buy products labelled Women's Clothing more likely buy products
232-
also from the Women's Shoes category and customers from New York most likely buy
231+
customers who buy products labelled `Women's Clothing` more likely buy products
232+
also from the `Women's Shoes` category and customers from New York most likely buy
233233
products from these categories together. The item set with the second highest
234234
support is `Women's Clothing` and `Women's Accessories` with customers mostly
235235
from New York. Finally, the item set with the third highest support is
@@ -269,8 +269,8 @@ POST /kibana_sample_data_ecommerce/_async_search
269269
// TEST[skip:setup kibana sample data]
270270

271271
The result will only show item sets that created from documents matching the
272-
filter, namely purchases in Europe. Using `filter` the calculated `support` still
273-
takes all purchases into acount. That's different to specifying a query at the
272+
filter, namely purchases in Europe. Using `filter`, the calculated `support` still
273+
takes all purchases into acount. That's different than specifying a query at the
274274
top-level, in which case `support` gets calculated only from purchases in Europe.
275275

276276

@@ -279,7 +279,7 @@ top-level, in which case `support` gets calculated only from purchases in Europe
279279

280280
The frequent items aggregation enables you to bucket numeric values by using
281281
<<runtime,runtime fields>>. The next example demonstrates how to use a script to
282-
add a runtime field to your documents that called `price_range` which is
282+
add a runtime field to your documents called `price_range`, which is
283283
calculated from the taxful total price of the individual transactions. The
284284
runtime field then can be used in the frequent items aggregation as a field to
285285
analyze.

0 commit comments

Comments
 (0)