SphinxClient
PHP Manual

SphinxClient::setGroupDistinct

(No version information available, might be only in CVS)

SphinxClient::setGroupDistinctSet attribute name for per-group distinct values count calculations

Description

public bool SphinxClient::setGroupDistinct ( string $attribute )

Sets attribute name for per-group distinct values count calculations. Only available for grouping queries. For each group, all values of attribute will be stored, then the amount of distinct values will be calculated and returned to the client. This feature is similar to COUNT(DISTINCT) clause in SQL.

Liste de paramètres

attribute

A string containing group-by attribute name.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Voir aussi


SphinxClient
PHP Manual