Public Member Functions | |
| deleteTextIndex ($paperId, $type=null, $assocId=null) | |
| & | filterKeywords ($text, $allowWildcards=false) |
| indexObjectKeywords ($objectId, $text, &$position) | |
| indexPaperFiles (&$paper) | |
| indexPaperMetadata (&$paper) | |
| indexSuppFileMetadata (&$suppFile) | |
| & | loadStopwords () |
| rebuildIndex ($log=false) | |
| updateFileIndex ($paperId, $type, $fileId) | |
| updateTextIndex ($paperId, $type, $text, $assocId=null) | |
Definition at line 26 of file PaperSearchIndex.inc.php.
| PaperSearchIndex.deleteTextIndex | ( | $ | paperId, | |
| $ | type = null, |
|||
| $ | assocId = null | |||
| ) |
Delete keywords from the search index.
| $paperId | int | |
| $type | int optional | |
| $assocId | int optional |
Definition at line 93 of file PaperSearchIndex.inc.php.
Referenced by TrackDirectorAction.deleteGalley(), and TrackDirectorAction.deleteSuppFile().
| & PaperSearchIndex.filterKeywords | ( | $ | text, | |
| $ | allowWildcards = false | |||
| ) |
Split a string into a clean array of keywords
| $text | string | |
| $allowWildcards | boolean |
Definition at line 104 of file PaperSearchIndex.inc.php.
References loadStopwords().
Referenced by indexObjectKeywords().
| PaperSearchIndex.indexObjectKeywords | ( | $ | objectId, | |
| $ | text, | |||
| &$ | position | |||
| ) |
Index a block of text for an object.
| $objectId | int | |
| $text | string | |
| $position | int |
Definition at line 34 of file PaperSearchIndex.inc.php.
References filterKeywords().
Referenced by updateFileIndex(), and updateTextIndex().
| PaperSearchIndex.indexPaperFiles | ( | &$ | paper | ) |
Index all paper files (supplementary and galley).
| $paper | Paper |
Definition at line 220 of file PaperSearchIndex.inc.php.
Referenced by AuthorSubmitForm.confirmSubmission(), NativeImportDom.handlePaperNode(), and rebuildIndex().
| PaperSearchIndex.indexPaperMetadata | ( | &$ | paper | ) |
Index paper metadata.
| $paper | Paper |
Definition at line 155 of file PaperSearchIndex.inc.php.
Referenced by AuthorSubmitForm.confirmSubmission(), MetadataForm.execute(), NativeImportDom.handlePaperNode(), and rebuildIndex().
| PaperSearchIndex.indexSuppFileMetadata | ( | &$ | suppFile | ) |
Index supp file metadata.
| $suppFile | object |
Definition at line 198 of file PaperSearchIndex.inc.php.
Referenced by SuppFileForm.execute().
| & PaperSearchIndex.loadStopwords | ( | ) |
Return list of stopwords. FIXME Should this be locale-specific?
Definition at line 139 of file PaperSearchIndex.inc.php.
Referenced by filterKeywords().
| PaperSearchIndex.rebuildIndex | ( | $ | log = false |
) |
Rebuild the search index for all conferences.
Definition at line 245 of file PaperSearchIndex.inc.php.
References indexPaperFiles(), and indexPaperMetadata().
Referenced by rebuildSearchIndex.execute(), ImportOCS1.rebuildSearchIndex(), and Upgrade.rebuildSearchIndex().
| PaperSearchIndex.updateFileIndex | ( | $ | paperId, | |
| $ | type, | |||
| $ | fileId | |||
| ) |
Add a file to the search index.
| $paperId | int | |
| $type | int | |
| $fileId | int |
Definition at line 64 of file PaperSearchIndex.inc.php.
References indexObjectKeywords().
Referenced by SuppFileForm.execute(), PaperGalleyForm.execute(), and ImportOCS1.importPapers().
| PaperSearchIndex.updateTextIndex | ( | $ | paperId, | |
| $ | type, | |||
| $ | text, | |||
| $ | assocId = null | |||
| ) |
Add a block of text to the search index.
| $paperId | int | |
| $type | int | |
| $text | string | |
| $assocId | int optional |
Definition at line 51 of file PaperSearchIndex.inc.php.
References indexObjectKeywords().
1.4.7