Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
a5e08153
Commit
a5e08153
authored
Sep 10, 2015
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of github.com:solariumphp/solarium into develop
parents
e1b758f8
b473ccaa
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
198 additions
and
37 deletions
+198
-37
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
.../QueryType/Select/ResponseParser/Component/Spellcheck.php
+2
-8
tests/Solarium/Tests/QueryType/Select/ResponseParser/Component/SpellcheckTest.php
...ryType/Select/ResponseParser/Component/SpellcheckTest.php
+196
-29
No files found.
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
View file @
a5e08153
...
...
@@ -104,14 +104,8 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
if
(
isset
(
$data
[
'spellcheck'
][
'collations'
])
&&
is_array
(
$data
[
'spellcheck'
][
'collations'
])
)
{
foreach
(
$data
[
'spellcheck'
][
'collations'
]
as
$collationResult
)
{
if
(
is_array
(
$collationResult
))
{
$collation
=
array
();
foreach
(
$collationResult
as
$key
=>
$value
)
{
$collation
=
array_merge
(
$collation
,
array
(
$key
,
$value
));
}
$collations
=
array_merge
(
$collations
,
$this
->
parseCollation
(
$query
,
$collation
));
}
foreach
(
$this
->
convertToKeyValueArray
(
$data
[
'spellcheck'
][
'collations'
])
as
$collationResult
)
{
$collations
=
array_merge
(
$collations
,
$this
->
parseCollation
(
$query
,
$collationResult
));
}
}
...
...
tests/Solarium/Tests/QueryType/Select/ResponseParser/Component/SpellcheckTest.php
View file @
a5e08153
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment