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

[Maps] use pre-indexed shapes in shape filters when shape is stored in elasticsearch #47171

Merged
merged 3 commits into from
Oct 3, 2019

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Oct 2, 2019

part of fix for #45521. Only geo_shape query supports quering by pre-indexed shapes and geo_shape query currently only works with geo_shape field mappings. This will not effect queries against geo_point fields until geo_shape query works for geo_points.

PR updates filtering by shape to use pre-indexed shape when available.

You will need 2 Kibana index patterns with geo_shape fields to test this PR. One index pattern to create the filter from and another index pattern to filter against.

To verify, create a filter for a feature. Edit the filter pill to view the filter. The filter should contain indexed_shape instead of shape.

Screen Shot 2019-10-03 at 7 53 22 AM

@nreese nreese added release_note:enhancement [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.5.0 labels Oct 2, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@nreese nreese requested a review from nickpeihl October 3, 2019 13:56
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

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

lgtm! love that feature!

tested in chrome and code review

@bcamper
Copy link

bcamper commented Oct 3, 2019

Zoom-consistent filtering (for shapes anyway 😅) FTW!

@nreese nreese merged commit 16f8b7c into elastic:master Oct 3, 2019
nreese added a commit to nreese/kibana that referenced this pull request Oct 3, 2019
…n elasticsearch (elastic#47171)

* [Maps] use pre-indexed shapes in shape filters when shape is stored in elasticsearch

* add _index to properties so it can be used in pre-indexed context

* update TooltipControl snapshot
nreese added a commit that referenced this pull request Oct 4, 2019
…n elasticsearch (#47171) (#47291)

* [Maps] use pre-indexed shapes in shape filters when shape is stored in elasticsearch

* add _index to properties so it can be used in pre-indexed context

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

Successfully merging this pull request may close these issues.

4 participants