Skip to content

Commit

Permalink
Allow exists filter for unindexed fields, but not meta fields
Browse files Browse the repository at this point in the history
(cherry picked from commit f4e3226)
  • Loading branch information
jimmyjones2 authored and spalger committed Feb 8, 2016
1 parent 8d0d581 commit c6da4eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<h5 ng-show="!field.details.error">Quick Count <kbn-info info="Top 5 values based on documents in the table" placement="right"></kbn-info>
<span ng-if="!field.details.error" class="small discover-field-details-count">
(
<a ng-show="field.indexed" ng-click="updateFilterInQuery('_exists_', field.name, '+')">{{::field.details.exists}}</a>
<span ng-show="!field.indexed">{{::field.details.exists}}</span>
<a ng-show="indexPattern.metaFields.indexOf(field.name) === -1" ng-click="updateFilterInQuery('_exists_', field.name, '+')">{{::field.details.exists}}</a>
<span ng-show="indexPattern.metaFields.indexOf(field.name) > -1">{{::field.details.exists}}</span>
/{{::field.details.total}} records
)
</span>
Expand Down

0 comments on commit c6da4eb

Please sign in to comment.