Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregations cleanup #5614

Closed
wants to merge 1 commit into from
Closed

Aggregations cleanup #5614

wants to merge 1 commit into from

Conversation

uboness
Copy link
Contributor

@uboness uboness commented Mar 31, 2014

  • removed an abstraction layer that handles the values source (consolidated values source with field data source)
  • better handling of value parser/formatter in range & histogram aggs
  • the buckets key will now be shown by default in range agg

@@ -96,7 +94,7 @@ public AggregatorFactory parse(String aggregationName, XContentParser parser, Se
shardSize = requiredSize;
}

ValuesSourceConfig<GeoPointValuesSource> config = new ValuesSourceConfig<>(GeoPointValuesSource.class);
ValuesSourceConfig<ValuesSource.GeoPoint> config = new ValuesSourceConfig<ValuesSource.GeoPoint>(ValuesSource.GeoPoint.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't undo the migration to the diamond operator. :-)

@jpountz
Copy link
Contributor

jpountz commented Mar 31, 2014

Is the change in the range agg backward compatible?

I spotted a lines where you reverted the migration to the diamond operator but otherwise I really really like this change!

@uboness
Copy link
Contributor Author

uboness commented Mar 31, 2014

@jpountz the change in the range agg should be bwc... the main thing there is the addition of the key to the bucket by default (so it's more of an extension of the api rather than a break)

@uboness
Copy link
Contributor Author

uboness commented Mar 31, 2014

and sure... I'll give you back your diamonds

@jpountz
Copy link
Contributor

jpountz commented Mar 31, 2014

Perfect!

- removed an abstraction layer that handles the values source (consolidated values source with field data source)
- better handling of value parser/formatter in range & histogram aggs
- the buckets key will now be shown by default in range agg
@uboness
Copy link
Contributor Author

uboness commented Mar 31, 2014

closed by d6636fc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants