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
787811dc
Commit
787811dc
authored
Apr 14, 2012
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Plain Diff
merge of fix in the development branch
parents
dde0171e
f715ddb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
library/Solarium/Query/Select/RequestBuilder/Component/FacetSet.php
...larium/Query/Select/RequestBuilder/Component/FacetSet.php
+4
-4
tests/Solarium/Tests/Query/Select/RequestBuilder/Component/FacetSetTest.php
...ts/Query/Select/RequestBuilder/Component/FacetSetTest.php
+1
-1
No files found.
library/Solarium/Query/Select/RequestBuilder/Component/FacetSet.php
View file @
787811dc
...
...
@@ -183,16 +183,16 @@ class FacetSet extends RequestBuilder
$request
->
addParam
(
"f.
$field
.facet.range.gap"
,
$facet
->
getGap
());
$request
->
addParam
(
"f.
$field
.facet.range.hardend"
,
$facet
->
getHardend
());
if
(
$facet
->
getInclude
()
!==
null
)
{
if
(
null
!==
$facet
->
getOther
()
)
{
$other
=
explode
(
','
,
$facet
->
getOther
());
foreach
(
$other
as
$otherValue
)
{
foreach
(
$other
AS
$otherValue
)
{
$request
->
addParam
(
"f.
$field
.facet.range.other"
,
trim
(
$otherValue
));
}
}
if
(
$facet
->
getInclude
()
!==
null
)
{
if
(
null
!==
$facet
->
getOther
()
)
{
$include
=
explode
(
','
,
$facet
->
getInclude
());
foreach
(
$include
as
$includeValue
)
{
foreach
(
$include
AS
$includeValue
)
{
$request
->
addParam
(
"f.
$field
.facet.range.include"
,
trim
(
$includeValue
));
}
}
...
...
tests/Solarium/Tests/Query/Select/RequestBuilder/Component/FacetSetTest.php
View file @
787811dc
...
...
@@ -121,7 +121,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
);
}
public
function
testBuildWithRangeFacet
NoIncludeNoOther
()
public
function
testBuildWithRangeFacet
ExcludingOptionalParams
()
{
$this
->
component
->
addFacet
(
new
FacetRange
(
array
(
...
...
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