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
94b19543
Commit
94b19543
authored
Jan 28, 2014
by
Adrien Brault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pivot facet response parsing
broken since
6c8ed118
parent
ba0bcaec
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 @
94b19543
...
@@ -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 @
94b19543
...
@@ -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