Skip to content
Snippets Groups Projects
Commit d97ac72a authored by Jochen Lienhard's avatar Jochen Lienhard Committed by Demian Katz
Browse files

Replace hard-coded 'Solr' with method call.

- Makes module more flexible/reusable.
parent d5fd055a
No related merge requests found
......@@ -72,8 +72,9 @@ class Similar implements RelatedInterface
*/
public function init($settings, $driver)
{
$this->results
= $this->searchService->similar('Solr', $driver->getUniqueId());
$this->results = $this->searchService->similar(
$driver->getSourceIdentifier(), $driver->getUniqueId()
);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment