Remove useless method in SearchEngineInterface

This commit is contained in:
Benoît Burnichon
2016-03-29 19:08:09 +02:00
parent 973826eeb3
commit 37883ed1ae
5 changed files with 0 additions and 89 deletions

View File

@@ -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;
}