Saved objects search does not escape hyphens #31792
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Saved Objects
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Kibana version: 6.7.0
Describe the bug:
If you try to search for a saved object that contains a hyphen it doesn't find it if you use the exact name. It doesn't matter if you try and escape it with a
\
or with"
around the whole string. The query that gets to to the _find endpoint of the saved_object_api is the same every time.Steps to reproduce:
-
in it. For example "metricbeat-*"metricbeat-*
,metricbeat\-*
"metricbeat-*"
The requests looks like this in all the cases:
/api/saved_objects/_find?search=metricbeat-**&per_page=20&page=1&fields=title&fields=id&search_fields=title&type=ind
The text was updated successfully, but these errors were encountered: