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
aec6e54a
Commit
aec6e54a
authored
Feb 03, 2014
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #242 from adrienbrault/fix-pivot-facet
Fix pivot facet response parsing
parents
566bb047
94b19543
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
...um/QueryType/Select/ResponseParser/Component/FacetSet.php
+1
-1
tests/Solarium/Tests/QueryType/Select/ResponseParser/Component/FacetSetTest.php
...ueryType/Select/ResponseParser/Component/FacetSetTest.php
+1
-1
No files found.
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
View file @
aec6e54a
...
@@ -247,7 +247,7 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
...
@@ -247,7 +247,7 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
*/
*/
protected
function
facetPivot
(
$query
,
$facet
,
$data
)
protected
function
facetPivot
(
$query
,
$facet
,
$data
)
{
{
$key
=
implode
(
','
,
$facet
->
getFields
()
);
$key
=
$facet
->
getKey
(
);
if
(
!
isset
(
$data
[
'facet_counts'
][
'facet_pivot'
][
$key
]))
{
if
(
!
isset
(
$data
[
'facet_counts'
][
'facet_pivot'
][
$key
]))
{
return
null
;
return
null
;
}
}
...
...
tests/Solarium/Tests/QueryType/Select/ResponseParser/Component/FacetSetTest.php
View file @
aec6e54a
...
@@ -97,7 +97,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
...
@@ -97,7 +97,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
)
)
),
),
'facet_pivot'
=>
array
(
'facet_pivot'
=>
array
(
'
cat,price
'
=>
array
(
'
keyE
'
=>
array
(
array
(
array
(
'field'
=>
'cat'
,
'field'
=>
'cat'
,
'value'
=>
'abc'
,
'value'
=>
'abc'
,
...
...
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