note 111342 added to sphinxclient.setrankingmode

From: Date: Sat, 09 Feb 2013 09:21:17 +0000
Subject: note 111342 added to sphinxclient.setrankingmode
Groups: php.notes 
Request: Send a blank email to php-notes+get-193565@lists.php.net to get a copy of this message
Sphinx search support now more than 3 ranking mode. 1) SPH_RANK_NONE ranker just assigns every document weight to 1. 2) SPH_RANK_WORDCOUNT ranker counts all the keyword occurrences and multiplies them by user field weights. 3) SPH_RANK_FIELDMASK ranker returns a bit mask of matched fields. 4) SPH_RANK_PROXIMITY, the default ranker in SPH_MATCH_ALL legacy mode, simply passes the phrase proximity for a weight. 5) SPH_RANK_MATCHANY ranker, used to emulate legacy MATCH_ANY mode, combines phrase proximity and the number of matched keywords so that, with default per-field weights, a) longer sub-phrase match (aka bigger phrase proximity) in any field would rank higher, and b) in case of agreeing phrase proximity, document with more matched unique keywords would rank higher. In other words, we look at max sub-phrase match length first, and a number of unique matched keywords second. In pseudo-code, 6) SPH_RANK_PROXIMITY_BM25, the default SphinxQL ranker and also the default ranker when “extended” matching mode is used with SphinxAPI 7) SPH_RANK_BM25 ranker sums user weights of the matched fields and BM25. 8) SPH_RANK_SPH04 ranker further improves on PROXIMITY_BM25 ranker (and introduces numbers instead of meaningful names, too, because a name would be way too complicated). Phrase proximity is still the leading factor, but, within a given phrase proximity, matches in the beginning of the field are ranked higher, and exact matches of the entire field are ranked highest. SOURCE & Details : http://sphinxsearch.com/blog/2010/08/17/how-sphinx-relevance-ranking-works/ ---- Server IP: 69.147.83.199 Probable Submitter: 109.89.67.136 ---- Manual Page -- http://php.net/manual/en/sphinxclient.setrankingmode.php Edit -- https://master.php.net/note/edit/111342 Del: integrated -- https://master.php.net/note/delete/111342/integrated Del: useless -- https://master.php.net/note/delete/111342/useless Del: bad code -- https://master.php.net/note/delete/111342/bad+code Del: spam -- https://master.php.net/note/delete/111342/spam Del: non-english -- https://master.php.net/note/delete/111342/non-english Del: in docs -- https://master.php.net/note/delete/111342/in+docs Del: other reasons-- https://master.php.net/note/delete/111342 Reject -- https://master.php.net/note/reject/111342 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193565) next »