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

[filters] filter operator registry and spatial_filter operator #150467

Open
nreese opened this issue Feb 7, 2023 · 1 comment
Open

[filters] filter operator registry and spatial_filter operator #150467

nreese opened this issue Feb 7, 2023 · 1 comment
Assignees
Labels
enhancement New value added to drive a business result Feature:Filters impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Meta Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@nreese
Copy link
Contributor

nreese commented Feb 7, 2023

Fixes #109340, #107044, and #136231

Background

In Maps, users can create spatial filters. The filter is added to the Filter bar.
Screen Shot 2021-09-03 at 4 07 33 PM
There are 2 important properties about spatial filters created from a Map:

  • filter.meta.type is set to spatial_filter. Maps uses filter.meta.type to identify spatial filters. Spatial filters are displayed on the map to provide a visual reference of all applied spatial filters.
  • filter.meta.isMultiIndex is set to true since Elasticsearch Query DSL for the filter is not tied to a single index pattern or field. The Elasticsearch Query DSL is generated in such a way that the filter works for all map layers, regardless of index pattern or spatial field. In the screenshot above a single filter is filtering both layers, even though they are from different index patterns and different spatial fields.
    • Each layer identifies one or more geo_point or geo_shape fields that is used to display features for that layer
    • The Elasticsearch Query DSL combines these into a bool.should clause where each field provides a bool.must clause ensuring the spatial field exists and that the document satisfies the spatial filter. Any document matching any of the bool.must clauses allows the bool.should clause to produce a match.

See #111897 for closed POV

@nreese nreese added Feature:Filters Meta Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Feb 7, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@ThomThomson ThomThomson added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. bug Fixes for quality problems that affect the customer experience enhancement New value added to drive a business result and removed bug Fixes for quality problems that affect the customer experience labels Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Filters impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Meta Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

3 participants