Commit cb671f87 authored by militarpancho's avatar militarpancho
Browse files

Add .keyword to aggregations

parent b50585e1
......@@ -3,7 +3,6 @@
<link rel="import" href="../paper-material/paper-material.html">
<link rel="import" href="../google-chart-elasticsearch/google-chart.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../reviews-table/reviews-table.html">
<link rel="import" href="../number-chart/number-chart.html">
<link rel="import" href="../comment-chart/comment-chart.html">
......@@ -220,7 +219,6 @@
this.client.search({
// undocumented params are appended to the query string
index: "reddit",
type: ["article","comment"],
body: {
size: 10,
query: {
......@@ -239,7 +237,7 @@
},
subreddit: {
terms: {
field: "subreddit",
field: "subreddit.keyword",
order: {
_count: "desc"
}
......@@ -247,7 +245,7 @@
},
sentiment: {
terms: {
field: "sentiment",
field: "sentiment.keyword",
order: {
_count: "desc"
}
......@@ -255,7 +253,7 @@
},
emotion: {
terms: {
field: "emotion",
field: "emotion.keyword",
order: {
_count: "desc"
}
......
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