PHP Class LuceneHandler, ojs

Inheritance: extends Handler
Afficher le fichier Open project: pkp/ojs

Méthodes publiques

Méthode Description
__construct ( $request ) Constructor
_getLucenePlugin ( ) : LucenePlugin Get the lucene plugin object
authorize ( $request, &$args, $roleAssignments )
pullChangedArticles ( $args, $request ) : JSON If pull-indexing is enabled then this handler returns article metadata in a formate that can be consumed by the Solr data import handler.
pullIndexingCallback ( $articleXml, $batchCount, $numDeleted ) : integer Return XML with index changes to the Solr server where it will be stored for later processing.
queryAutocomplete ( $args, $request ) : JSONMessage AJAX request for search query auto-completion.
usageMetricBoost ( $args, $request ) If the "ranking-by-metric" feature is enabled then this handler returns a file with normalized boost data.

Method Details

__construct() public méthode

Constructor
public __construct ( $request )
$request Request

_getLucenePlugin() public méthode

Get the lucene plugin object
public _getLucenePlugin ( ) : LucenePlugin
Résultat LucenePlugin

authorize() public méthode

public authorize ( $request, &$args, $roleAssignments )

pullChangedArticles() public méthode

If pull-indexing is enabled then this handler returns article metadata in a formate that can be consumed by the Solr data import handler.
public pullChangedArticles ( $args, $request ) : JSON
$args array
$request Request
Résultat JSON string

pullIndexingCallback() public méthode

Return XML with index changes to the Solr server where it will be stored for later processing.
public pullIndexingCallback ( $articleXml, $batchCount, $numDeleted ) : integer
$articleXml string The XML with index changes to be transferred to the Solr server.
$batchCount integer The number of articles in the XML list (i.e. the expected number of documents to be indexed).
$numDeleted integer The number of articles in the XML list that are marked for deletion.
Résultat integer The number of articles processed.

queryAutocomplete() public méthode

AJAX request for search query auto-completion.
public queryAutocomplete ( $args, $request ) : JSONMessage
$args array
$request Request
Résultat JSONMessage JSON object

usageMetricBoost() public méthode

If the "ranking-by-metric" feature is enabled then this handler returns a file with normalized boost data.
public usageMetricBoost ( $args, $request )
$args array
$request Request