SolrCollapseFunction::setMax
SolrCollapseFunction::setMax
(PECL solr >= 2.2.0)
SolrCollapseFunction::setMax — Selects the group heads by the max value of a numeric field or function query.
Description
public SolrCollapseFunction SolrCollapseFunction::setMax ( string $max )
Selects the group heads by the max value of a numeric field or function query.
Parameters
max
Return Values
SolrCollapseFunction
Examples
Example #1 SolrCollapseFunction::setMax() example
<?php
$func = new SolrCollapseFunction('field_name'
$func->setMax('sum(cscore(),field(some_field))'
$query = new SolrQuery('*:*'
$query->collapse($func
?>
← SolrCollapseFunction::setHint
SolrCollapseFunction::setMin →
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/solrcollapsefunction.setmax.php