mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Ensure we do not peform an empty ccs query * Trim in case there is extra whitespace
This commit is contained in:
parent
cb3336f990
commit
df0d679ea8
1 changed files with 11 additions and 1 deletions
|
@ -77,7 +77,17 @@ uiModules.get('apps/management')
|
|||
});
|
||||
}
|
||||
|
||||
function getIndices(pattern, limit = MAX_SEARCH_SIZE) {
|
||||
function getIndices(rawPattern, limit = MAX_SEARCH_SIZE) {
|
||||
const pattern = rawPattern.trim();
|
||||
|
||||
// Searching for `*:` fails for CCS environments. The search request
|
||||
// is worthless anyways as the we should only send a request
|
||||
// for a specific query (where we do not append *) if there is at
|
||||
// least a single character being searched for.
|
||||
if (pattern === '*:') {
|
||||
return [];
|
||||
}
|
||||
|
||||
const params = {
|
||||
index: pattern,
|
||||
ignore: [404],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue