update : 2015.11.03
php.shukuma.com

검색:
 
 
Set per-index weights

SphinxClient::setIndexWeights

(PECL sphinx >= 0.1.0)

SphinxClient::setIndexWeightsSet per-index weights

설명

public bool SphinxClient::setIndexWeights ( array $weights )

Sets per-index weights and enables weighted summing of match weights across different indexes.

인수

weights

An associative array mapping string index names to integer weights. Default is empty array, i.e. weighting summing is disabled.

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.