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
40b088d6
Commit
40b088d6
authored
Oct 07, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #900 from mikhailov/patch-2
Speed search result parsing
parents
f1125d64
67fde172
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/app/services/elasticsearch/es-datasource.js
+11
-9
No files found.
src/app/services/elasticsearch/es-datasource.js
View file @
40b088d6
...
...
@@ -224,7 +224,7 @@ function (angular, _, config, kbn, moment) {
var
endsInOpen
=
function
(
string
,
opener
,
closer
)
{
var
character
;
var
count
=
0
;
for
(
var
i
=
0
;
i
<
string
.
length
;
i
++
)
{
for
(
var
i
=
0
,
len
=
string
.
length
;
i
<
len
;
i
++
)
{
character
=
string
[
i
];
if
(
character
===
opener
)
{
...
...
@@ -279,18 +279,20 @@ function (angular, _, config, kbn, moment) {
return
{
dashboards
:
[],
tags
:
[]
};
}
var
hits
=
{
dashboards
:
[],
tags
:
results
.
facets
.
tags
.
terms
||
[]
};
var
resultsHits
=
results
.
hits
;
var
displayHits
=
{
dashboards
:
[],
tags
:
results
.
facets
.
tags
.
terms
||
[]
};
for
(
var
i
=
0
;
i
<
results
.
hits
.
hits
.
length
;
i
++
)
{
hits
.
dashboards
.
push
({
id
:
results
.
hits
.
hits
[
i
].
_id
,
title
:
results
.
hits
.
hits
[
i
].
_source
.
title
,
tags
:
results
.
hits
.
hits
[
i
].
_source
.
tags
for
(
var
i
=
0
,
len
=
resultsHits
.
total
;
i
<
len
;
i
++
)
{
var
hit
=
resultsHits
.
hits
[
i
];
displayHits
.
dashboards
.
push
({
id
:
hit
.
_id
,
title
:
hit
.
_source
.
title
,
tags
:
hit
.
_source
.
tags
});
}
h
its
.
tagsOnly
=
tagsOnly
;
return
h
its
;
displayH
its
.
tagsOnly
=
tagsOnly
;
return
displayH
its
;
});
};
...
...
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