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
Merge pull request #100 from johannessteu/feature/geo-distance-sort
[TASK] Add a generic sort operation
This changes adds a generic sort operation that can be used to create any kind of sorting that ElasticSearch supports.
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
@@ -264,7 +264,7 @@ your node data. Aggregations also allows you to build a complex filter for e.g.
264
264
265
265
**Aggregation methods**
266
266
Right now there are two methods implemented. One generic `aggregation` function that allows you to add any kind of
267
-
aggregation definition and a pre-configured `fieldBasedAggregation`. Both methods can be added to your TS search query.
267
+
aggregation definition and a pre-configured `fieldBasedAggregation`. Both methods can be added to your TS search query.
268
268
You can nest aggregations by providing a parent name.
269
269
270
270
*`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)
293
-
with the name colors. So all different colors of your nodetype will be listed here.
293
+
with the name colors. So all different colors of your nodetype will be listed here.
294
294
The second `fieldBasedAggregation` will add another sub-aggregation named avgprice below your colors-aggregation.
0 commit comments