GoLang SolrQuery::addGroupSortField

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



Do you know a GoLang replacement for PHP's SolrQuery::addGroupSortField? Write it!

PHP SolrQuery::addGroupSortField

PHP original manual for SolrQuery::addGroupSortField [ show | php.net ]

SolrQuery::addGroupSortField

(PECL solr >= 2.2.0)

SolrQuery::addGroupSortFieldAdd a group sort field (group.sort parameter)

Description

public SolrQuery SolrQuery::addGroupSortField ( string $field [, int $order ] )

Allow sorting group documents, using group sort field (group.sort parameter).

Parameters

field

Field name

order

Order ASC/DESC, utilizes SolrQuery::ORDER_* constants

Return Values

Examples

Example #1 SolrQuery::addGroupSortField() example

<?php

$solrQuery 
= new SolrQuery('*:*');
$solrQuery
    
->setGroup(true)
    ->
addGroupSortField('price'SolrQuery::ORDER_ASC);
    
echo 
$solrQuery
?>

The above example will output something similar to:

q=*:*&group=true&group.sort=price asc

See Also