diff --git a/src/ui/public/kuery/suggestions/conjunction.js b/src/ui/public/kuery/suggestions/conjunction.js index 90857611af693..0abd46795fb4a 100644 --- a/src/ui/public/kuery/suggestions/conjunction.js +++ b/src/ui/public/kuery/suggestions/conjunction.js @@ -3,7 +3,13 @@ const type = 'conjunction'; const conjunctions = ['and', 'or']; function getDescription(conjunction) { - return `Add an ${conjunction.toUpperCase()} clause.`; + if (conjunction === 'and') { + return `
Requires that both arguments joined together both return true
`; + } else if (conjunction === 'or') { + return `Requires only one of the arguments joined together must return true
`; + } else { + return `Add an ${conjunction.toUpperCase()} clause
`; + } } export function getSuggestionsProvider() { diff --git a/src/ui/public/kuery/suggestions/field.js b/src/ui/public/kuery/suggestions/field.js index 2e74006ef4060..f49e5020ac9d4 100644 --- a/src/ui/public/kuery/suggestions/field.js +++ b/src/ui/public/kuery/suggestions/field.js @@ -1,7 +1,7 @@ const type = 'field'; function getDescription(fieldName) { - return `Filter results using ${fieldName}.`; + return `Filter results that contain ${fieldName}
`; } export function getSuggestionsProvider({ indexPattern }) { diff --git a/src/ui/public/kuery/suggestions/operator.js b/src/ui/public/kuery/suggestions/operator.js index eb5ab27c983e8..2a140b597419b 100644 --- a/src/ui/public/kuery/suggestions/operator.js +++ b/src/ui/public/kuery/suggestions/operator.js @@ -2,33 +2,33 @@ const type = 'operator'; const operators = { '<=': { - description: 'is LESS THAN OR EQUAL TO some value', + description: 'is less than or equal to some value', fieldTypes: ['number', 'date', 'ip'] }, '>=': { - description: 'is GREATER THAN OR EQUAL TO to some value', + description: 'is greater than or equal to to some value', fieldTypes: ['number', 'date', 'ip'] }, '<': { - description: 'is LESS THAN some value', + description: 'is less than some value', fieldTypes: ['number', 'date', 'ip'] }, '>': { - description: 'is GREATER THAN some value', + description: 'is greater than some value', fieldTypes: ['number', 'date', 'ip'] }, ':': { - description: 'IS some value', + description: 'equals some value', fieldTypes: ['string', 'number', 'date', 'ip', 'geo_point', 'geo_shape'] }, ':*': { - description: 'EXISTS' + description: 'exists' } }; function getDescription({ fieldName, operator }) { const { description } = operators[operator]; - return `Filter results where ${fieldName} ${description}.`; + return `Filter results where ${fieldName} ${description}
`; } export function getSuggestionsProvider({ indexPattern }) { diff --git a/src/ui/public/kuery/suggestions/recent_search.js b/src/ui/public/kuery/suggestions/recent_search.js index 070b4b9b1ef4d..1999c5e5dcb0f 100644 --- a/src/ui/public/kuery/suggestions/recent_search.js +++ b/src/ui/public/kuery/suggestions/recent_search.js @@ -1,5 +1,5 @@ const type = 'recentSearch'; -const description = 'A recent entry in your search history.'; +const description = 'Run this query you performed earlier'; export function getSuggestionsProvider({ persistedLog, query }) { return function getRecentSearchSuggestions() { diff --git a/src/ui/public/kuery/suggestions/value.js b/src/ui/public/kuery/suggestions/value.js index 55bdbb0dff5d4..a1a60349342ee 100644 --- a/src/ui/public/kuery/suggestions/value.js +++ b/src/ui/public/kuery/suggestions/value.js @@ -4,7 +4,10 @@ const baseUrl = chrome.addBasePath('/api/kibana/suggestions/values'); const type = 'value'; function getDescription({ fieldName, value }) { - return `Filter results where ${fieldName} is "${value}".`; + return ` +Find results where ${fieldName} + is ${value}
+ `; } export function getSuggestionsProvider({ $http, indexPattern }) { diff --git a/src/ui/public/query_bar/directive/query_bar.html b/src/ui/public/query_bar/directive/query_bar.html index 8ac92d8cc0532..e7608098e4d31 100644 --- a/src/ui/public/query_bar/directive/query_bar.html +++ b/src/ui/public/query_bar/directive/query_bar.html @@ -7,6 +7,7 @@ items="queryBar.suggestions" item-template="queryBar.suggestionTemplate" on-select="queryBar.onSuggestionSelect(item)" + class="suggestionTypeahead" >