PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SphinxClient::setFilter> <SphinxClient::setConnectTimeout
Last updated: Fri, 14 Nov 2008

view this page in

SphinxClient::setFieldWeights

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

SphinxClient::setFieldWeightsSet field weights

Описание

public bool SphinxClient::setFieldWeights ( array $weights )

Binds per-field weights by name.

Match ranking can be affected by per-field weights. See » Sphinx documentation for an explanation on how phrase proximity ranking is affected. This call lets you specify non-default weights for full-text fields.

The weights must be positive 32-bit integers, so be careful not to hit 32-bit integer maximum. The final weight is a 32-bit integer too. Default weight value is 1. Unknown field names are silently ignored.

Список параметров

weights

Associative array of field names and field weights.

Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

Смотрите также



add a note add a note User Contributed Notes
SphinxClient::setFieldWeights
There are no user contributed notes for this page.

SphinxClient::setFilter> <SphinxClient::setConnectTimeout
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites