Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Elasticsearch DSL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
Elasticsearch DSL
Commits
b506684e
Commit
b506684e
authored
8 years ago
by
Simonas Šerlinskas
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #140 from tchiotludo/tchiotludo-patch-1
Allow chaining of aggregation
parents
0130783e
8288d1e4
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Aggregation/AbstractAggregation.php
+4
-0
4 additions, 0 deletions
src/Aggregation/AbstractAggregation.php
with
4 additions
and
0 deletions
src/Aggregation/AbstractAggregation.php
+
4
−
0
View file @
b506684e
...
...
@@ -76,6 +76,8 @@ abstract class AbstractAggregation implements BuilderInterface
* Adds a sub-aggregation.
*
* @param AbstractAggregation $abstractAggregation
*
* @return $this
*/
public
function
addAggregation
(
AbstractAggregation
$abstractAggregation
)
{
...
...
@@ -84,6 +86,8 @@ abstract class AbstractAggregation implements BuilderInterface
}
$this
->
aggregations
->
add
(
$abstractAggregation
);
return
$this
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment