Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
	"aggs": {  				// The aggregations object (the key aggs can also be used) in the JSON holds the aggregations to be computed
		"type": {			// Property name of an object for that the aggregation should be calculated, here the system property "type" that is used for the object types
			"size" : 30,				// This key is // Peroptional with the default, 10. theThe terms aggregation returns the buckets for the top tenset terms ordered by the doc_count. 
										// Set "size" for a different number of returned buckets
            "order" : "desc",           // This key is optional with the default "desc" for descanding order in respect with the key "sort". Set "asc" for ascanding.
            "sort" : "_count",          // This key is optional with the default "_count" for 
            "min_doc_count" : 1
		},
	"filters": {              // The "filter" objects configures how to reduce the hits
		"modified": {        // The system property "modified" contains the date of the last modification of an object
				"o": "rg",      // The operator "o" is set to "rg" for a date range configuration
				"v1":"today"    // The filter value "v1" for the range is set to "today" to get only objects that were modified today.
		}
	},
	"options": 
	{
		"timezone": "+02:00"   // The timezone can be used if users are working in different timezones.
	}
}

...