-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Filters] Support geospatial fields #67905
Comments
Pinging @elastic/kibana-gis (Team:Geo) |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
@elastic/kibana-app-arch Exists filtering is disabled for geo_point and geo_shape fields even though exists query is supported in Elasticsearch. The button is disabled because of the snippet below. How can we turn on filtering for geo_point and geo_shape type?
|
@nreese did you ever hear back from @elastic/kibana-app-arch on this? |
Enabling geo filtering from discover is as easy as adding However, this adds it to the I think that given mocks for how geo filter editing should look like, it shouldn't be too hard to implement. (But there are some edge cases there - for example ES doesn't support topleft=bottomright, so we'd have to increase the filter window by some margin, or how do we handle @nreese do you think some of the UI components from Maps could be reused here? |
Are there any other side-effects of enabling filtering for geo_point and geo_shape types?
geo_point and geo_shape filters are created from drawing bounding boxes, polygons, or circles on a map. I do not think these could be reused in the filter pill editor unless the filter pill editor displayed a small map to show the filter's location. |
I think you have kind of answered the question yourself: If you allow adding filters from discover, you need to support editing \ displaying them in the filter bar 🤷♀️ , which is not trivial. I guess we could fallback to just showing the DSL? |
I think this is the crux of the issue. How do you enable the exists button as described by the issue without turning on filtering for geo_point and geo_shape fields in the filter pill? |
You could say that the only operator supported by this field is Then when you enable the However, for some reason, the Bottom line, I think we need to solve the geo filters UI (even if it's just showin the DSL), rather than try allowing only the |
Pinging @elastic/kibana-presentation (Team:Presentation) |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Adding this to the Maps Icebox. While this is a needed enhancement, the extra-large size, complexities around implementing a filtering registry, adding geo shapes to the existing filter pills mean that we will be unable to get to this in the near term. An alternative / more feasible approach to this would see us creating a geospatial control with shape editing in a popover. |
Describe the feature:
Elasticsearch supports geo-bounding box, geo-distance, geo-polygon, and geo-shape. It would be nice if we could use these types of filters from the filter bar.
Original notes:
The customer would like to be able to filter on the existence of a geoip fields.
On 7.x versions, it seems greyed out.
The text was updated successfully, but these errors were encountered: