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

search for in the

SphinxClient::setRetries> <SphinxClient::setMaxQueryTime
Last updated: Fri, 14 Nov 2008

view this page in

SphinxClient::setRankingMode

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

SphinxClient::setRankingModeSet ranking mode

Описание

public bool SphinxClient::setRankingMode ( int $ranker )

Sets ranking mode. Only available in SPH_MATCH_EXTENDED2 matching mode.

Ranking modes
Constant Description
SPH_RANK_PROXIMITY_BM25 Default ranking mode which uses both proximity and BM25 ranking.
SPH_RANK_BM25 Statistical ranking mode which uses BM25 ranking only (similar to most of other full-text engines). This mode is faster, but may result in worse quality on queries which contain more than 1 keyword.
SPH_RANK_NONE Disables ranking. This mode is the fastest. It is essentially equivalent to boolean searching, a weight of 1 is assigned to all matches.

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

ranker

Ranking mode.

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

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

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



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

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