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

Search visualization/dashboard listing page with AND instead of OR #20676

Closed
AlonaNadler opened this issue Jul 11, 2018 · 7 comments
Closed

Search visualization/dashboard listing page with AND instead of OR #20676

AlonaNadler opened this issue Jul 11, 2018 · 7 comments
Labels
blocked Feature:Query Bar Querying and query bar features Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@AlonaNadler
Copy link

Between 5 to 6 there was a change in the way the search in the visualization and dashboard listing page works.
In the past when searching for a dashboard apache metricbeat it would return results for dashboards with apache and metricbeatin the name/description.
Currently, with the changed behavior it will return any dashboard with apache OR metricbeat, which returns a lot more results,
it makes it difficult to find dashboards when users have dozens of objects. In addition, searching apache AND metricbeat doesn't help only by using +apache +metricbeat

The request is to have a space consider as an AND by default and allowing for explicit searches using an OR . By defualt when users search for apache metricbeat is will return dashbaoards with both terms, and if searching for apache OR metricbeat it returns the current results dashboard with either apache or metricbeat

@AlonaNadler AlonaNadler changed the title Search visualization/dashboard use spaces as OR instead of AND Search visualization/dashboard listing page with AND instead of OR Jul 11, 2018
@alexfrancoeur
Copy link

@timroes this was what we discussed earlier today. This may be related to elastic/elasticsearch#25470 and split_queries_on_whitespace (elastic/elasticsearch#30691) may help.

cc: @Bargs @lukasolson

@alexfrancoeur alexfrancoeur added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Jul 11, 2018
@Bargs
Copy link
Contributor

Bargs commented Jul 11, 2018

I believe the saved objects search still uses the simple_query_string query. If so, we should just be able to change the default_operator parameter to AND. However I'm surprised apache AND metricbeat doesn't work, so there might be something else happening that I'm forgetting.

@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Query Bar Querying and query bar features and removed :Discovery labels Sep 16, 2018
@timroes
Copy link
Contributor

timroes commented Jan 24, 2019

Checked that and talked to the platform team. This is because the new saved object API now searches with OR as the default operator instead of AND. We need to wait for the platform team to either change the default behavior or offer an option in the API to select the default behavior before we can fix that.

cc @mikecote @elastic/kibana-platform

@timroes
Copy link
Contributor

timroes commented Jan 24, 2019

Blocked on #29262

@timroes
Copy link
Contributor

timroes commented Jan 24, 2019

Workaround: There btw is a temporary workaround, which you can do, by using + in front of a word while searching for your dashboard/visualization. Searching for +traffic +alerts should now only reveal you your results containing both terms.

@nreese
Copy link
Contributor

nreese commented Jan 25, 2019

related to #19656

@nreese
Copy link
Contributor

nreese commented Jan 30, 2019

cc @JacobBrandt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Feature:Query Bar Querying and query bar features Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants