Skip to content

Commit

Permalink
Use a field filter instead of terms filter so that analysis is done o…
Browse files Browse the repository at this point in the history
…n the value. Closes #1166. Closes #1142
  • Loading branch information
Rashid Khan committed Apr 28, 2014
1 parent 6b69103 commit 45ff278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/panels/map/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ function (angular, app, _, $) {
$scope.inspector = angular.toJson(JSON.parse(request.toString()),true);
};

$scope.build_search = function(field,value) {
filterSrv.set({type:'terms',field:field,value:value,mandate:"must"});
$scope.build_search = function(field, value) {
filterSrv.set({type:'field', field:field, query:value, mandate:"must"});
};

});
Expand Down

0 comments on commit 45ff278

Please sign in to comment.