equal
deleted
inserted
replaced
91 $esRes = Es::search($esQuery); |
91 $esRes = Es::search($esQuery); |
92 |
92 |
93 $datestats = []; |
93 $datestats = []; |
94 |
94 |
95 $max = intval($esRes['aggregations']['datestats']['maxyear']['value']); |
95 $max = intval($esRes['aggregations']['datestats']['maxyear']['value']); |
96 $min = intval($esRes['aggregations']['datestats']['maxyear']['value']); |
96 $min = intval($esRes['aggregations']['datestats']['minyear']['value']); |
97 |
97 |
98 return response()->json(['dateminmax' => [ $min, $max ] ]); |
98 return response()->json(['dateminmax' => [ $min, $max ] ]); |
99 } |
99 } |
100 |
100 |
101 /** |
101 /** |