Single-value metrics aggregation that computes the average of numeric values that are extracted from the aggregated documents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "album": "The White Stripes", | |
| "year": 1999, | |
| "US_peak_chart_post": "-" | |
| }, | |
| { | |
| "album": "De Stijl", | |
| "year": 2000, | |
| "US_peak_chart_post": "-" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "took": 35, | |
| "timed_out": false, | |
| "_shards": { | |
| "total": 1, | |
| "successful": 1, | |
| "failed": 0 | |
| }, | |
| "hits": { | |
| "total": 211, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "took": 3, | |
| "timed_out": false, | |
| "_shards": { | |
| "total": 1, | |
| "successful": 1, | |
| "failed": 0 | |
| }, | |
| "hits": { | |
| "total": 2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| sensorId: "SingleListFilter", | |
| appbaseField: "db.field", | |
| showSearch: {true} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "query" : { | |
| "bool" : { | |
| "filter" : { | |
| "term" : { | |
| "city" : "London" | |
| } | |
| } | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var React = require('react'); | |
| var UserImg = React.createClass({ | |
| componentDidMount: function() { | |
| var self = this; | |
| this.img = new Image(); | |
| var defaultSrc = 'http://www.avidog.com/wp-content/uploads/2015/01/BellaHead082712_11-50x65.jpg'; | |
| this.img.onerror = function() { | |
| if (self.isMounted()) { | |
| self.setState({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var React = require('react'); | |
| var UserImg = require('./userImg.jsx'); | |
| //User component | |
| var User = React.createClass({ | |
| HIGHLIGHT_TAGS: function(group_topics) { | |
| var highlight_tags = []; | |
| var group_topics = group_topics; | |
| var highlight = this.props.TOPIC_LIST; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var React = require('react'); | |
| var Tag = require('./tag.jsx'); | |
| var FilterContainer = React.createClass({ | |
| componentWillMount: function() { | |
| this.fire_response(); | |
| }, | |
| fire_response: function() { | |
| var $this = this; | |
| streamingClient = REQUEST.GET_STREAMING_CLIENT(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var React = require('react'); | |
| var FilterContainer = require('./filterContainer.jsx'); | |
| var User = require('./User.jsx'); | |
| var Container = React.createClass({ | |
| getInitialState: function() { | |
| return { | |
| users: [], | |
| CITY_LIST: [], | |
| TOPIC_LIST: [] |