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

Added search type to prevent Solr parse errors in edge cases.

parent 4bfca795
No related merge requests found
......@@ -175,7 +175,8 @@ class InjectSpellingListener
$params = new ParamBag();
$params->set('spellcheck', 'true');
$params->set('spellcheck.dictionary', current($this->dictionaries));
$collection = $this->backend->search(new Query($query), 0, 0, $params);
$queryObj = new Query($query, 'AllFields');
$collection = $this->backend->search($queryObj, 0, 0, $params);
$spellcheck->mergeWith($collection->getSpellcheck());
}
}
......
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