mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
- fix for #7733
strings with special charracters are not found unless we add a space after it (searching for "test %*" wont work but searching for "test % *" will )
This commit is contained in:
parent
ef372ca308
commit
721d3bc29e
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ app.service('savedVisualizations', function (Promise, es, kbnIndex, SavedVis, Pr
|
|||
body = {
|
||||
query: {
|
||||
simple_query_string: {
|
||||
query: searchString + '*',
|
||||
query: searchString + (['/', '!', '?', '&', '=', '%'].indexOf(searchString[searchString.length - 1]) === -1 ? '' : ' ') + '*',
|
||||
fields: ['title^3', 'description'],
|
||||
default_operator: 'AND'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue