Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
MonographSearchIndex Class Reference
Inheritance diagram for MonographSearchIndex:
SubmissionSearchIndex

Public Member Functions

 clearMonographFiles ($monograph)
 
 deleteTextIndex ($monographId, $type=null, $assocId=null)
 
 indexMonographFiles (&$monograph)
 
 indexMonographMetadata (&$monograph)
 
 indexObjectKeywords ($objectId, $text, &$position)
 
 rebuildIndex ($log=false)
 
 updateFileIndex ($monographId, $type, $fileId)
 
 updateTextIndex ($monographId, $type, $text, $assocId=null)
 

Additional Inherited Members

- Static Public Member Functions inherited from SubmissionSearchIndex
static _loadStopwords ()
 
static filterKeywords ($text, $allowWildcards=false)
 

Detailed Description

Class to add content to the monograph search index.

Definition at line 18 of file MonographSearchIndex.inc.php.

Member Function Documentation

MonographSearchIndex::clearMonographFiles (   $monograph)

Remove indexed file contents for a monograph

Parameters
$monographMonograph

Definition at line 150 of file MonographSearchIndex.inc.php.

References DAORegistry\getDAO().

MonographSearchIndex::deleteTextIndex (   $monographId,
  $type = null,
  $assocId = null 
)

Delete keywords from the search index.

Parameters
$monographIdint
$typeint optional
$assocIdint optional

Definition at line 86 of file MonographSearchIndex.inc.php.

References DAORegistry\getDAO().

Referenced by MonographDAO\deleteById().

MonographSearchIndex::indexMonographFiles ( $monograph)

Index all monograph files (galley files).

Parameters
$monographMonograph

Definition at line 132 of file MonographSearchIndex.inc.php.

References DAORegistry\getDAO().

Referenced by ManageFileApiHandler\indexSubmissionFiles().

MonographSearchIndex::indexMonographMetadata ( $monograph)

Index monograph metadata.

Parameters
$monographMonograph

Definition at line 95 of file MonographSearchIndex.inc.php.

References DAORegistry\getDAO().

Referenced by CatalogEntrySubmissionReviewForm\execute(), and SubmissionMetadataViewForm\execute().

MonographSearchIndex::indexObjectKeywords (   $objectId,
  $text,
$position 
)

Index a block of text for an object.

Parameters
$objectIdint
$textstring
$positionint

Definition at line 26 of file MonographSearchIndex.inc.php.

References DAORegistry\getDAO().

MonographSearchIndex::rebuildIndex (   $log = false)

Rebuild the search index for all presses.

Definition at line 158 of file MonographSearchIndex.inc.php.

References DAORegistry\getDAO(), and Config\getVar().

Referenced by rebuildSearchIndex\execute().

MonographSearchIndex::updateFileIndex (   $monographId,
  $type,
  $fileId 
)

Add a file to the search index.

Parameters
$monographIdint
$typeint
$fileIdint

Definition at line 56 of file MonographSearchIndex.inc.php.

References SearchFileParser\fromFile(), and DAORegistry\getDAO().

MonographSearchIndex::updateTextIndex (   $monographId,
  $type,
  $text,
  $assocId = null 
)

Add a block of text to the search index.

Parameters
$monographIdint
$typeint
$textstring
$assocIdint optional

Definition at line 43 of file MonographSearchIndex.inc.php.

References DAORegistry\getDAO().


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