Commit b0a79376 authored by Alberto Pascual's avatar Alberto Pascual Committed by J. Fernando Sánchez
Browse files

problem in graphics

parent d956d961
......@@ -446,7 +446,7 @@
if(ready){
this.client.search({
// undocumented params are appended to the query string
index: "somedi-unstable",
index: "somedi",
type: "lateral",
body: {
size: 500,
......@@ -579,7 +579,7 @@
if(ready){
this.client.search({
// undocumented params are appended to the query string
index: "somedi-unstable",
index: "somedi",
body: {
size: 2000,
query: {
......@@ -613,7 +613,7 @@
},
},
aggs: {
'type' : { "terms" : { "field" : "_type" } }
'type' : { "terms" : { "field" : "_type", "order": {"_term": "desc"}} }
}
},
'typesource': {
......@@ -624,7 +624,7 @@
},
},
aggs: {
'type' : { "terms" : { "field" : "_type" } }
'type' : { "terms" : { "field" : "_type" ,"order": {"_term": "desc"}} }
}
},
'comments.data.from.name': {
......
......@@ -760,7 +760,7 @@ Data can be provided in one of three ways:
console.log(hits)
hits.forEach(function(entry) {
//console.log(entry)
data.push([entry.key, (entry.type.buckets[0].doc_count), (entry.type.buckets[1].doc_count), (entry.type.buckets[2].doc_count), (entry.type.buckets[3].doc_count)]);
data.push([entry.key, (entry.type.buckets[3].doc_count), (entry.type.buckets[1].doc_count), (entry.type.buckets[0].doc_count), (entry.type.buckets[2].doc_count)]);
});
}
//console.log(data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment