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

Refactor Geohash Grid Aggregation #14138

Merged
merged 1 commit into from
Nov 16, 2015
Merged

Refactor Geohash Grid Aggregation #14138

merged 1 commit into from
Nov 16, 2015

Conversation

colings86
Copy link
Contributor

No description provided.

}

if (requiredSize == 0) {
requiredSize = Integer.MAX_VALUE;
Copy link
Contributor

Choose a reason for hiding this comment

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

I was curious why this is set to Integer.MAX_VALUE? Would we not want to reset it to DEFAULT_MAX_NUM_CELLS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So we have a loose convention that size: 0 means get all buckets. I personally don't like it but we have to keep it for now I guess as this refactor should be backwards compatible

throw new SearchParseException(context, "Unexpected token " + token + " in [" + aggregationName + "].",
parser.getTokenLocation());
Integer size = (Integer) otherOptions.get(GeoHashGridParams.FIELD_SIZE);
if (size != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation looks wrong?

@jpountz
Copy link
Contributor

jpountz commented Nov 16, 2015

LGTM, just found some indentation issues

@colings86 colings86 merged commit 4b1a007 into elastic:feature/aggs-refactoring Nov 16, 2015
@colings86 colings86 deleted the enhancement/geohashAggRefactor branch November 16, 2015 14:31
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Search Refactoring labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants