CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\BuildDocument\Completion\PQScore Class Reference

Score that combines QualityScore and the pageviews statistics (popularity) More...

+ Inheritance diagram for CirrusSearch\BuildDocument\Completion\PQScore:
+ Collaboration diagram for CirrusSearch\BuildDocument\Completion\PQScore:

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
 

Detailed Description

Score that combines QualityScore and the pageviews statistics (popularity)

Member Function Documentation

◆ explain()

CirrusSearch\BuildDocument\Completion\PQScore::explain ( array $doc)

Explain the score.

Parameters
array$doc
Returns
array

Reimplemented from CirrusSearch\BuildDocument\Completion\QualityScore.

◆ getRequiredFields()

CirrusSearch\BuildDocument\Completion\PQScore::getRequiredFields ( )
Returns
string[]

Reimplemented from CirrusSearch\BuildDocument\Completion\QualityScore.

◆ score()

CirrusSearch\BuildDocument\Completion\PQScore::score ( array $doc)
Parameters
array$doc
Returns
int

Reimplemented from CirrusSearch\BuildDocument\Completion\QualityScore.


The documentation for this class was generated from the following file: