diff --git a/src/ui/public/documentation_links/documentation_links.js b/src/ui/public/documentation_links/documentation_links.js index 4c8c72bbe0ee5..6355b8c249631 100644 --- a/src/ui/public/documentation_links/documentation_links.js +++ b/src/ui/public/documentation_links/documentation_links.js @@ -25,6 +25,7 @@ export const documentationLinks = { luceneQuerySyntax: `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/query-dsl-query-string-query.html#query-string-syntax`, queryDsl: `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/query-dsl.html`, + kueryQuerySyntax: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/kuery-query.html`, }, date: { dateMath: `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/common-options.html#date-math` diff --git a/src/ui/public/query_bar/directive/__tests__/query_bar.js b/src/ui/public/query_bar/directive/__tests__/query_bar.js index b023ed4534442..c7b5a26a062ea 100644 --- a/src/ui/public/query_bar/directive/__tests__/query_bar.js +++ b/src/ui/public/query_bar/directive/__tests__/query_bar.js @@ -120,20 +120,6 @@ describe('queryBar directive', function () { expectDeepEqual($parentScope.submitHandler.getCall(0).args[0], { query: 'bar', language: 'lucene' }); }); - it('should customize the input element for each language', function () { - init({ query: 'foo', language: 'lucene' }, 'discover', true); - const luceneInput = $elem.find('.kuiLocalSearchInput'); - expect(luceneInput.attr('placeholder')).to.be('Search... (e.g. status:200 AND extension:PHP)'); - - const helpLink = $elem.find('.kuiLocalSearchAssistedInput__assistance .kuiLink'); - expect(helpLink.text().trim()).to.be('Uses lucene query syntax'); - - $parentScope.query = { query: 'foo', language: 'kuery' }; - $parentScope.$digest(); - const kueryInput = $elem.find('.kuiLocalSearchInput'); - expect(kueryInput.attr('placeholder')).to.be('Search with kuery...'); - }); - }); describe('typeahead key', function () { diff --git a/src/ui/public/query_bar/directive/query_bar.html b/src/ui/public/query_bar/directive/query_bar.html index caac42da1e080..be7527436b3d1 100644 --- a/src/ui/public/query_bar/directive/query_bar.html +++ b/src/ui/public/query_bar/directive/query_bar.html @@ -15,7 +15,7 @@ ng-model="queryBar.localQuery.query" placeholder="Search... (e.g. status:200 AND extension:PHP)" aria-label="Search input" - aria-describedby="discover-lucene-syntax-hint" + aria-describedby="discoverLuceneSyntaxHint" type="text" class="kuiLocalSearchInput kuiLocalSearchInput--lucene" ng-class="{'kuiLocalSearchInput-isInvalid': queryBarForm.$invalid}" @@ -24,7 +24,7 @@