Skip to content

Commit

Permalink
Update dashboard searching to use wildcard query instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Apr 21, 2014
1 parent f718c60 commit 0cfa2f2
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/kibana/apps/dashboard/services/saved_dashboards.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,22 @@ define(function (require) {
type: 'dashboard',
body: {
query: {
multi_match: {
query: searchString || '',
type: 'phrase_prefix',
fields: ['title^3', 'description'],
zero_terms_query: 'all'
bool: {
should : [
{
wildcard: {
title: {
value: searchString + '*',
boost: 3
}
}
},
{
wildcard: {
description: searchString + '*'
}
},
],
}
}
}
Expand Down

0 comments on commit 0cfa2f2

Please sign in to comment.