diff --git a/src/plugins/kibana/public/discover/directives/no_results.js b/src/plugins/kibana/public/discover/directives/no_results.js new file mode 100644 index 0000000000000..85cffe96ab54d --- /dev/null +++ b/src/plugins/kibana/public/discover/directives/no_results.js @@ -0,0 +1,13 @@ +import _ from 'lodash'; +import $ from 'jquery'; +import uiModules from 'ui/modules'; +import noResultsTemplate from '../partials/no_results.html'; + +uiModules +.get('apps/discover') +.directive('discoverNoResults', function () { + return { + restrict: 'E', + template: noResultsTemplate + }; +}); diff --git a/src/plugins/kibana/public/discover/index.html b/src/plugins/kibana/public/discover/index.html index c71c8f9117294..36e49c8894c04 100644 --- a/src/plugins/kibana/public/discover/index.html +++ b/src/plugins/kibana/public/discover/index.html @@ -94,58 +94,7 @@
- Unfortunately I could not find any results matching your search. I tried really hard. I looked all over the place and frankly, I just couldn't find anything good. Help me, help you. Here are some ideas: -
- - - --
I see you are looking at an index with a date field. It is possible your query does not match anything in the current time range, or that there is no data at all in the currently selected time range. Click the button below to open the time picker. For future reference you can open the time picker by clicking on the time picker button in the top right corner of your screen. -
-- The search bar at the top uses Elasticsearch's support for Lucene Query String syntax. Let's say we're searching web server logs that have been parsed into a few fields. -
- --
200- - Or we can search in a specific field. Find 200 in the status field: -
status:200- - Find all status codes between 400-499: -
status:[400 TO 499]- - Find status codes 400-499 with the extension php: -
status:[400 TO 499] AND extension:PHP- - Or HTML -
status:[400 TO 499] AND (extension:php OR extension:html)- - -
+ Unfortunately I could not find any results matching your search. I tried really hard. I looked all over the place and frankly, I just couldn't find anything good. Help me, help you. Here are some ideas: +
+ + + ++
I see you are looking at an index with a date field. It is possible your query does not match anything in the current time range, or that there is no data at all in the currently selected time range. Click the button below to open the time picker. For future reference you can open the time picker by clicking on the time picker button in the top right corner of your screen. +
++ The search bar at the top uses Elasticsearch's support for Lucene Query String syntax. Let's say we're searching web server logs that have been parsed into a few fields. +
+ ++
200+ + Or we can search in a specific field. Find 200 in the status field: +
status:200+ + Find all status codes between 400-499: +
status:[400 TO 499]+ + Find status codes 400-499 with the extension php: +
status:[400 TO 499] AND extension:PHP+ + Or HTML +
status:[400 TO 499] AND (extension:php OR extension:html)+ + +