Skip to content

Conversation

@talevy
Copy link
Contributor

@talevy talevy commented Aug 7, 2019

CellIdSource is a helper ValuesSource that encodes GeoPoint
into a long-encoded representation of the grid bucket the point
is associated with. This complicates thing as usage evolves to
support shapes that are associated with more than one bucket ordinal.

CellIdSource is a helper ValuesSource that encodes GeoPoint
into a long-encoded representation of the grid bucket the point
is associated with. This complicates thing as usage evolves to
support shapes that are associated with more than one bucket ordinal.
@talevy talevy added :Analytics/Geo Indexing, search aggregations of geo points and shapes >refactoring v8.0.0 v7.4.0 labels Aug 7, 2019
@talevy talevy requested review from imotov and nknize August 7, 2019 20:36
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo

for (int i = 0; i < valuesCount; ++i) {
final long val = values.nextValue();
final GeoPoint point = values.nextValue();
final long val = longEncoder.encode(point.getLon(), point.getLat(), precision);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the main reason for this change is so that more than one bucket can be added to bucketOrds per doc-value.

@talevy talevy requested a review from polyfractal August 7, 2019 20:56
Copy link
Contributor

@nknize nknize left a comment

Choose a reason for hiding this comment

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

LGTM

@talevy talevy merged commit f114ef6 into elastic:master Aug 8, 2019
@talevy talevy deleted the remove-cellidsource branch August 8, 2019 20:06
@polyfractal
Copy link
Contributor

🎉

talevy added a commit that referenced this pull request Aug 8, 2019
)

CellIdSource is a helper ValuesSource that encodes GeoPoint
into a long-encoded representation of the grid bucket the point
is associated with. This complicates thing as usage evolves to
support shapes that are associated with more than one bucket ordinal.
talevy added a commit that referenced this pull request Aug 9, 2019
talevy added a commit that referenced this pull request Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes >refactoring v7.4.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants