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
58a5640c
Commit
58a5640c
authored
Dec 31, 2013
by
Frédéric MENU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue #231
parent
05cab9bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
library/Solarium/QueryType/Select/Query/Component/Facet/Range.php
...Solarium/QueryType/Select/Query/Component/Facet/Range.php
+22
-0
library/Solarium/QueryType/Select/RequestBuilder/Component/FacetSet.php
...um/QueryType/Select/RequestBuilder/Component/FacetSet.php
+1
-0
No files found.
library/Solarium/QueryType/Select/Query/Component/Facet/Range.php
View file @
58a5640c
...
...
@@ -304,4 +304,26 @@ class Range extends Facet
if
(
$include
===
null
)
$include
=
array
();
return
$include
;
}
/**
* Set the facet mincount
*
* @param int $minCount
* @return self Provides fluent interface
*/
public
function
setMinCount
(
$minCount
)
{
return
$this
->
setOption
(
'mincount'
,
$minCount
);
}
/**
* Get the facet mincount
*
* @return int
*/
public
function
getMinCount
()
{
return
$this
->
getOption
(
'mincount'
);
}
}
library/Solarium/QueryType/Select/RequestBuilder/Component/FacetSet.php
View file @
58a5640c
...
...
@@ -185,6 +185,7 @@ class FacetSet extends RequestBuilder implements ComponentRequestBuilderInterfac
$request
->
addParam
(
"f.
$field
.facet.range.end"
,
$facet
->
getEnd
());
$request
->
addParam
(
"f.
$field
.facet.range.gap"
,
$facet
->
getGap
());
$request
->
addParam
(
"f.
$field
.facet.range.hardend"
,
$facet
->
getHardend
());
$request
->
addParam
(
"f.
$field
.facet.mincount"
,
$facet
->
getMinCount
());
foreach
(
$facet
->
getOther
()
as
$otherValue
)
{
$request
->
addParam
(
"f.
$field
.facet.range.other"
,
$otherValue
);
...
...
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