Score how good the search is so they can be ordered
*/
- $iGlobalRank = 0;
-
foreach ($aPhrases as $iPhrase => $oPhrase) {
$aNewPhraseSearches = array();
$sPhraseType = $bIsStructured ? $oPhrase->getPhraseType() : '';
$iToken == 0 && $iPhrase == 0,
$iPhrase == 0,
$iToken + 1 == sizeof($aWordset)
- && $iPhrase + 1 == sizeof($aPhrases),
- $iGlobalRank
+ && $iPhrase + 1 == sizeof($aPhrases)
);
foreach ($aNewSearches as $oSearch) {
continue;
}
- $iRank = $oSearch->addToRank($iGlobalRank);
if (!isset($aGroupedSearches[$iRank])) {
$aGroupedSearches[$iRank] = array();
}