Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
250e3546
Commit
250e3546
authored
Feb 01, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard search fix, only query against title field (Closes #51,Fixes #24)
parent
2e59587c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/app/services/dashboard.js
+5
-7
No files found.
src/app/services/dashboard.js
View file @
250e3546
...
@@ -385,14 +385,12 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
...
@@ -385,14 +385,12 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
);
);
};
};
this
.
elasticsearch_list
=
function
(
query
,
count
)
{
this
.
elasticsearch_list
=
function
(
query
,
count
)
{
var
request
=
ejs
.
Request
().
indices
(
config
.
grafana_index
).
types
(
'dashboard'
);
var
request
=
ejs
.
Request
().
indices
(
config
.
grafana_index
).
types
(
'dashboard'
);
var
q
=
null
;
// if elasticsearch has disabled _all field we need
if
(
config
.
elasticsearch_all_disabled
==
true
){
// need to specifiy field here
q
=
(
'title:'
+
(
query
||
'*'
))
var
q
=
'title:'
+
(
query
||
'*'
);
}
else
{
q
=
(
query
||
'*'
)
}
return
request
.
query
(
return
request
.
query
(
ejs
.
QueryStringQuery
(
q
)
ejs
.
QueryStringQuery
(
q
)
).
size
(
count
).
doSearch
(
).
size
(
count
).
doSearch
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment