ppadovani / KibanaNestedSupportPlugin

A plugin for Kibana 5.5 and beyond that adds support for nested field search and aggregation.
https://ppadovani.github.io/knql_plugin/overview/
Apache License 2.0
79 stars 7 forks source link

Search bar queries ignored #87

Closed TomHejret closed 6 years ago

TomHejret commented 6 years ago

Plugin version: 6.3.1-1.0.1

Kibana version: 6.3.1

Plugins installed: KNQL plugin only

Description of the problem including expected versus actual behavior: After enabling KNQL plugin for Kibana index, search queries from search bar in Discovery, Visualization and Dashboard sections are ignored. Verified that same query using Dev Tools (console for requests to ES) with query_string returns results as expected. Also "KNQL syntax" label is not present in the search bar.

Steps to reproduce:

  1. Before enabling nested fields, try search query like global_info.name: wpa* in Discovery section -this returns correct set of results
  2. Enable nested fields
  3. Try search same query like global_info.name: wpa* or as KNQL syntax global_info.name~=wpa*
  4. Results are not filtered e.g. same as no search query was used

Errors in browser console (if relevant):

ReferenceError: fieldPart is not defined at fromUser (commons.bundle.js:3) at commons.bundle.js:3 at Object.link (commons.bundle.js:3) at vendors.bundle.js:133 at vendors.bundle.js:133 at invokeLinkFn (vendors.bundle.js:133) at nodeLinkFn (vendors.bundle.js:133) at compositeLinkFn (vendors.bundle.js:133) at vendors.bundle.js:133 at vendors.bundle.js:133 at boundTranscludeFn (vendors.bundle.js:133) at controllersBoundTransclude (vendors.bundle.js:133) at vendors.bundle.js:133 at Scope.$digest (vendors.bundle.js:133) at Scope.$apply (vendors.bundle.js:133) at done (vendors.bundle.js:133) "<input ng-if="queryBar.localQuery.language === 'knql'" knql-parse-query="" input-focus="" disable-input-focus="queryBar.disableAutoFocus" kbn-typeahead-input="" ng-model="queryBar.localQuery.query" ng-keydown="queryBar.handleKeyDown($event)" ng-change="queryBar.updateSuggestions()" ng-click="queryBar.updateSuggestions()" placeholder="Search... (e.g. status=200 AND extension=&quot;PHP&quot;)" aria-label="Search input" aria-describedby="discoverLuceneSyntaxHint" type="text" class="kuiLocalSearchInput ng-pristine ng-untouched ng-valid" ng-class="{'kuiLocalSearchInput-isInvalid': queryBarForm.$invalid}" data-test-subj="queryInput">"

ppadovani commented 6 years ago

Hmm... strange... I'll take a look at this tomorrow morning.

ppadovani commented 6 years ago

Not sure how I didn't see this issue... fixed in both 6.3.0 and 6.3.1 the only releases where this could be found due to the refactoring from 6.2 -> 6.3.

TomHejret commented 6 years ago

We all are just humans. :) I am looking forward to try new build.