Skip to content
Snippets Groups Projects
Commit 942caf55 authored by Demian Katz's avatar Demian Katz
Browse files

Removed unused checkSpelling method (VUFIND-649).

parent f1bcf78e
No related merge requests found
...@@ -261,32 +261,6 @@ class Solr implements ServiceLocatorAwareInterface ...@@ -261,32 +261,6 @@ class Solr implements ServiceLocatorAwareInterface
return $result; return $result;
} }
/**
* Get spelling suggestions based on input phrase.
*
* @param string $phrase The input phrase
*
* @return array An array of spelling suggestions
*/
public function checkSpelling($phrase)
{
if ($this->logger) {
$this->logger->debug('Spell Check: '.$phrase);
}
// Query String Parameters
$options = array(
'q' => $phrase,
'rows' => 0,
'start' => 1,
'indent' => 'yes',
'spellcheck' => 'true'
);
$result = $this->select('GET', $options);
return $result;
}
/** /**
* Internal method to build query string from search parameters * Internal method to build query string from search parameters
* *
......
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