DAO class for monograph search index. More...
Public Member Functions | |
| deleteMonographKeywords ($monographId, $type=null, $assocId=null) | |
| & | getPhraseResults (&$press, $phrase, $publishedFrom=null, $publishedTo=null, $type=null, $limit=500, $cacheHours=24) |
| insertKeyword ($keyword) | |
| insertObject ($monographId, $type, $assocId, $keepExisting=false) | |
| insertObjectKeyword ($objectId, $keyword, $position) | |
| MonographSearchDAO () | |
DAO class for monograph search index.
Definition at line 20 of file MonographSearchDAO.inc.php.
| MonographSearchDAO.deleteMonographKeywords | ( | $ | monographId, | |
| $ | type = null, |
|||
| $ | assocId = null | |||
| ) |
Delete all keywords for an monograph object.
| $monographId | int | |
| $type | int optional | |
| $assocId | int optional |
Definition at line 131 of file MonographSearchDAO.inc.php.
| & MonographSearchDAO.getPhraseResults | ( | &$ | press, | |
| $ | phrase, | |||
| $ | publishedFrom = null, |
|||
| $ | publishedTo = null, |
|||
| $ | type = null, |
|||
| $ | limit = 500, |
|||
| $ | cacheHours = 24 | |||
| ) |
Retrieve the top results for a phrases with the given limit (default 500 results).
| $keywordId | int |
Definition at line 70 of file MonographSearchDAO.inc.php.
| MonographSearchDAO.insertKeyword | ( | $ | keyword | ) |
Add a word to the keyword list (if it doesn't already exist).
| $keyword | string |
Definition at line 33 of file MonographSearchDAO.inc.php.
Referenced by insertObjectKeyword().
| MonographSearchDAO.insertObject | ( | $ | monographId, | |
| $ | type, | |||
| $ | assocId, | |||
| $ | keepExisting = false | |||
| ) |
Add an monograph object to the index (if already exists, indexed keywords are cleared).
| $monographId | int | |
| $type | int | |
| $assocId | int |
Definition at line 163 of file MonographSearchDAO.inc.php.
| MonographSearchDAO.insertObjectKeyword | ( | $ | objectId, | |
| $ | keyword, | |||
| $ | position | |||
| ) |
Index an occurrence of a keyword in an object.s
| $objectId | int | |
| $keyword | string | |
| $position | int |
Definition at line 195 of file MonographSearchDAO.inc.php.
References insertKeyword().
| MonographSearchDAO.MonographSearchDAO | ( | ) |
Constructor
Definition at line 24 of file MonographSearchDAO.inc.php.
1.7.1