You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+94-5Lines changed: 94 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,7 @@ your node data. Aggregations also allows you to build a complex filter for e.g.
240
240
241
241
**Aggregation methods**
242
242
Right now there are two methods implemented. One generic `aggregation` function that allows you to add any kind of
243
-
aggregation definition and a pre-configured `fieldBasedAggregation`. Both methods can be added to your TS search query.
243
+
aggregation definition and a pre-configured `fieldBasedAggregation`. Both methods can be added to your TS search query.
244
244
You can nest aggregations by providing a parent name.
245
245
246
246
*`aggregation($name, array $aggregationDefinition, $parentPath = NULL)` -- generic method to add a $aggregationDefinition under a path $parentPath with the name $name
The first `fieldBasedAggregation` will add a simple terms aggregation (https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html)
269
-
with the name colors. So all different colors of your nodetype will be listed here.
269
+
with the name colors. So all different colors of your nodetype will be listed here.
270
270
The second `fieldBasedAggregation` will add another sub-aggregation named avgprice below your colors-aggregation.
0 commit comments