CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Score that combines QualityScore and the pageviews statistics (popularity) More...
Public Member Functions | |
getRequiredFields () | |
score (array $doc) | |
explain (array $doc) | |
Explain the score. | |
Public Member Functions inherited from CirrusSearch\BuildDocument\Completion\QualityScore | |
__construct ( $boostTemplates=null) | |
scoreNormLog2 ( $value, $norm) | |
log2( ( value / norm ) + 1 ) => [0-1] | |
scoreNorm ( $value, $norm) | |
value / norm => [0-1] | |
boostTemplates (array $doc, $score) | |
Modify an existing score based on templates contained by the document. | |
boost ( $score, $boost) | |
Boost the score : boost value lower than 1 will decrease the score boost value set to 1 will keep the score unchanged boost value greater than 1 will increase the score. | |
setMaxDocs ( $maxDocs) | |
Additional Inherited Members | |
Public Attributes inherited from CirrusSearch\BuildDocument\Completion\QualityScore | |
const | INCOMING_LINKS_MAX_DOCS_FACTOR = 0.1 |
const | EXTERNAL_LINKS_NORM = 20 |
const | PAGE_SIZE_NORM = 50000 |
const | HEADING_NORM = 20 |
const | REDIRECT_NORM = 30 |
const | SCORE_RANGE = 10000000 |
Protected Member Functions inherited from CirrusSearch\BuildDocument\Completion\QualityScore | |
intermediateScore (array $doc) | |
intermediateExplain (array $doc) | |
explainWeight (array $detail, $weight, $allWeights, $valueName) | |
Protected Attributes inherited from CirrusSearch\BuildDocument\Completion\QualityScore | |
$maxDocs | |
Score that combines QualityScore and the pageviews statistics (popularity)
CirrusSearch\BuildDocument\Completion\PQScore::explain | ( | array | $doc | ) |
Explain the score.
array | $doc |
Reimplemented from CirrusSearch\BuildDocument\Completion\QualityScore.
CirrusSearch\BuildDocument\Completion\PQScore::getRequiredFields | ( | ) |
Reimplemented from CirrusSearch\BuildDocument\Completion\QualityScore.
CirrusSearch\BuildDocument\Completion\PQScore::score | ( | array | $doc | ) |
array | $doc |
Reimplemented from CirrusSearch\BuildDocument\Completion\QualityScore.