Commit 58a5640c authored by Frédéric MENU's avatar Frédéric MENU

Fix issue #231

parent 05cab9bd
......@@ -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');
}
}
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment