mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Remove useless dynamic search dispatch
This commit is contained in:
@@ -282,7 +282,7 @@ class ElasticSearchEngine implements SearchEngineInterface
|
|||||||
$params['body']['aggs'] = $aggs;
|
$params['body']['aggs'] = $aggs;
|
||||||
}
|
}
|
||||||
|
|
||||||
$res = $this->doExecute('search', $params);
|
$res = $this->client->search($params);
|
||||||
|
|
||||||
$results = new ArrayCollection();
|
$results = new ArrayCollection();
|
||||||
$suggestions = new ArrayCollection();
|
$suggestions = new ArrayCollection();
|
||||||
@@ -533,17 +533,6 @@ class ElasticSearchEngine implements SearchEngineInterface
|
|||||||
return $sort;
|
return $sort;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function doExecute($method, array $params)
|
|
||||||
{
|
|
||||||
$res = call_user_func([$this->client, $method], $params);
|
|
||||||
|
|
||||||
if (isset($res['error'])) {
|
|
||||||
throw new RuntimeException('Unable to execute method '.$method);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $res;
|
|
||||||
}
|
|
||||||
|
|
||||||
private function getFlagsKey(\appbox $appbox)
|
private function getFlagsKey(\appbox $appbox)
|
||||||
{
|
{
|
||||||
$flags = [];
|
$flags = [];
|
||||||
|
Reference in New Issue
Block a user