Commit b473ccaa authored by Bas de Nooijer's avatar Bas de Nooijer

Merge pull request #354 from brunonuss/bugfix/collations_format_changes_in_solr_5.0

Spellchecker: solr 5.0 format changes kills collations
parents 6b540584 24d8dbe5
...@@ -104,14 +104,8 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf ...@@ -104,14 +104,8 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
if (isset($data['spellcheck']['collations']) && if (isset($data['spellcheck']['collations']) &&
is_array($data['spellcheck']['collations']) is_array($data['spellcheck']['collations'])
) { ) {
foreach ($data['spellcheck']['collations'] as $collationResult) { foreach ($this->convertToKeyValueArray($data['spellcheck']['collations']) as $collationResult) {
if (is_array($collationResult)) { $collations = array_merge($collations, $this->parseCollation($query, $collationResult ));
$collation = array();
foreach ($collationResult as $key => $value) {
$collation = array_merge($collation, array($key, $value));
}
$collations = array_merge($collations, $this->parseCollation($query, $collation ));
}
} }
} }
......
Markdown is supported
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