PHP Класс LuceneHandler, ojs

Наследование: extends Handler
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( $request )
$request Request

_getLucenePlugin() публичный Метод

Get the lucene plugin object
public _getLucenePlugin ( ) : LucenePlugin
Результат LucenePlugin

authorize() публичный Метод

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

pullChangedArticles() публичный Метод

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
Результат JSON string

pullIndexingCallback() публичный Метод

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.
Результат integer The number of articles processed.

queryAutocomplete() публичный Метод

AJAX request for search query auto-completion.
public queryAutocomplete ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object

usageMetricBoost() публичный Метод

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