server/src/tests/Controllers/DateStatsControllerTest.php
changeset 377 52169c718513
parent 375 145561ff51ff
child 387 7fba86fa8604
equal deleted inserted replaced
376:02f113d43f18 377:52169c718513
     6 
     6 
     7 use EasyRdf\Literal;
     7 use EasyRdf\Literal;
     8 
     8 
     9 class DateStatsControllerTest extends TestCase
     9 class DateStatsControllerTest extends TestCase
    10 {
    10 {
    11     private $sparqlClient;
       
    12 
       
    13     const ES_QUERY = [
    11     const ES_QUERY = [
    14         'index' => 'corpus',
    12         'index' => 'corpus',
    15         'body' => [
    13         'body' => [
    16             "size" => 0,
    14             "size" => 0,
    17             "query" => [ "match_all" => []],
    15             "query" => [ "match_all" => [] ],
    18             "aggs" => [
    16             "aggs" => [
    19                 "datestats" => [
    17                 "datestats" => [
    20                     "nested"=> [
    18                     "nested"=> [
    21                         "path" => "creation_years"
    19                         "path" => "creation_years"
    22                     ],
    20                     ],