PHP 클래스 LuceneHandler, ojs

상속: extends Handler
파일 보기 프로젝트 열기: pkp/ojs

공개 메소드들

메소드 설명
__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