mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Remove useless method in SearchEngineInterface
This commit is contained in:
@@ -246,24 +246,6 @@ SQL;
|
||||
];
|
||||
}
|
||||
|
||||
if ($searchEngine instanceof SearchEngineInterface) {
|
||||
$ret = $searchEngine->excerpt($highlight, $fields, $this->record, $options);
|
||||
|
||||
// sets highlighted value from search engine, highlighted values will now
|
||||
// be surrounded by [[em]][[/em]] tags
|
||||
if ($ret) {
|
||||
foreach ($fields as $key => $value) {
|
||||
if (!isset($ret[$key])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ($ret[$key] as $metaId => $newValue) {
|
||||
$fields[$key]['values'][$metaId]['value'] = $newValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user