mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
- remove "path" from subdefs
This commit is contained in:
@@ -378,6 +378,10 @@ class ElasticSearchEngine implements SearchEngineInterface
|
||||
|
||||
$results = [];
|
||||
foreach ($res['hits']['hits'] as $hit) {
|
||||
// remove "path" from subdefs
|
||||
foreach($hit['_source']['subdefs'] as $name=>$subdef) {
|
||||
unset($hit['_source']['subdefs'][$name]['path']);
|
||||
}
|
||||
$results[] = $hit;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user