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

Add GeometryTree support for point/multipoint #43432

Merged
merged 3 commits into from
Jun 21, 2019

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Jun 20, 2019

This commit adds support for MultiPoint and Point
shapes to be stored in GeometryTree.

To represent the collection of points, a KDbush is used, which is
a sorted array sorted recursively by alternating dimensions x/y.
This work is inspired by https://github.com/mourner/kdbush

The purpose of this reader is to check whether any subset of the
points in the kd-tree are contained within the bounding-box query.

@talevy talevy added the :Analytics/Geo Indexing, search aggregations of geo points and shapes label Jun 20, 2019
@talevy talevy requested a review from imotov June 20, 2019 14:38
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo

@talevy
Copy link
Contributor Author

talevy commented Jun 20, 2019

run elasticsearch-ci/2

This commit adds support for MultiPoint and Point
shapes to be stored in GeometryTree.

To represent the collection of points, a KDbush is used, which is
a sorted array sorted recursively by alternating dimensions x/y.
This work is inspired by https://github.com/mourner/kdbush

The purpose of this reader is to check whether any subset of the
points in the kd-tree are contained within the bounding-box query.
Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

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

I added a few suggestions, but otherwise looks good.

@talevy
Copy link
Contributor Author

talevy commented Jun 21, 2019

thanks @imotov, I've tried to respond to all your good comments!

@talevy talevy requested a review from imotov June 21, 2019 21:03
Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

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

Left a couple of minor comments. Otherwise LGTM.

@talevy
Copy link
Contributor Author

talevy commented Jun 21, 2019

thanks Igor!

@talevy talevy merged commit 417c48c into elastic:geoshape-doc-values Jun 21, 2019
@talevy talevy deleted the multipoint branch June 21, 2019 23:31
talevy added a commit that referenced this pull request Sep 20, 2019
* Add GeometryTree support for point/multipoint

This commit adds support for MultiPoint and Point
shapes to be stored in GeometryTree.

To represent the collection of points, a KDbush is used, which is
a sorted array sorted recursively by alternating dimensions x/y.
This work is inspired by https://github.com/mourner/kdbush

The purpose of this reader is to check whether any subset of the
points in the kd-tree are contained within the bounding-box query.

* unify reader interface and cleanup multipoint usage

* respond to review
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants