GoLang SolrCollapseFunction::setMax

request it (101)
GoLang replacement for PHP's SolrCollapseFunction::setMax [edit | history]



Do you know a GoLang replacement for PHP's SolrCollapseFunction::setMax? Write it!

PHP SolrCollapseFunction::setMax

PHP original manual for SolrCollapseFunction::setMax [ show | php.net ]

SolrCollapseFunction::setMax

(PECL solr >= 2.2.0)

SolrCollapseFunction::setMaxSelects 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);

?>