File manager - Edit - /var/www/payraty/helpdesk/vendor/elasticsearch/elasticsearch/docs/examples/70f0aa5853697e265ef3b1df72940951.asciidoc
Back
// aggregations/bucket/datehistogram-aggregation.asciidoc:380 [source, php] ---- $params = [ 'index' => 'my_index', 'id' => '1', 'body' => [ 'date' => '2015-10-01T00:30:00Z', ], ]; $response = $client->index($params); $params = [ 'index' => 'my_index', 'id' => '2', 'body' => [ 'date' => '2015-10-01T01:30:00Z', ], ]; $response = $client->index($params); $params = [ 'index' => 'my_index', 'body' => [ 'aggs' => [ 'by_day' => [ 'date_histogram' => [ 'field' => 'date', 'calendar_interval' => 'day', ], ], ], ], ]; $response = $client->search($params); ----
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings