Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

elasticsearch php search date range

$params = [‘index’ => ‘201706’,‘type’ => ‘facebook’, ‘body’ => [‘query’ => [‘bool’ => [‘filter’ => [‘range’ => [‘created_at’ => [‘gte’ => ‘2017-06-25 01:00:00’,‘lte’ => ‘2017-09-30 08:00:00’] ]] ] ]]];
Source by discuss.elastic.co #
 
PREVIOUS NEXT
Tagged: #elasticsearch #php #search #date #range
ADD COMMENT
Topic
Name
2+6 =