Public Member Functions | |
| deleteTextIndex ($articleId, $type=null, $assocId=null) | |
| & | filterKeywords ($text, $allowWildcards=false) |
| indexArticleFiles (&$article) | |
| indexArticleMetadata (&$article) | |
| indexObjectKeywords ($objectId, $text, &$position) | |
| indexSuppFileMetadata (&$suppFile) | |
| & | loadStopwords () |
| rebuildIndex ($log=false) | |
| updateFileIndex ($articleId, $type, $fileId) | |
| updateTextIndex ($articleId, $type, $text, $assocId=null) | |
Definition at line 27 of file ArticleSearchIndex.inc.php.
| ArticleSearchIndex.deleteTextIndex | ( | $ | articleId, | |
| $ | type = null, |
|||
| $ | assocId = null | |||
| ) |
Delete keywords from the search index.
| $articleId | int | |
| $type | int optional | |
| $assocId | int optional |
Definition at line 94 of file ArticleSearchIndex.inc.php.
References DAORegistry.getDAO().
Referenced by LayoutEditorAction.deleteGalley(), and LayoutEditorAction.deleteSuppFile().
| & ArticleSearchIndex.filterKeywords | ( | $ | text, | |
| $ | allowWildcards = false | |||
| ) |
Split a string into a clean array of keywords
| $text | string | |
| $allowWildcards | boolean |
Definition at line 105 of file ArticleSearchIndex.inc.php.
References Core.cleanVar(), Config.getVar(), loadStopwords(), String.regexp_replace(), String.regexp_split(), String.strlen(), String.strtolower(), and String.substr().
Referenced by ArticleSearch._parseQuery(), and indexObjectKeywords().
| ArticleSearchIndex.indexArticleFiles | ( | &$ | article | ) |
Index all article files (supplementary and galley).
| $article | Article |
Definition at line 211 of file ArticleSearchIndex.inc.php.
References DAORegistry.getDAO(), indexSuppFileMetadata(), and updateFileIndex().
Referenced by AuthorSubmitStep5Form.execute(), and rebuildIndex().
| ArticleSearchIndex.indexArticleMetadata | ( | &$ | article | ) |
Index article metadata.
| $article | Article |
Definition at line 156 of file ArticleSearchIndex.inc.php.
References updateTextIndex().
Referenced by MetadataForm.execute(), AuthorSubmitStep5Form.execute(), and rebuildIndex().
| ArticleSearchIndex.indexObjectKeywords | ( | $ | objectId, | |
| $ | text, | |||
| &$ | position | |||
| ) |
Index a block of text for an object.
| $objectId | int | |
| $text | string | |
| $position | int |
Definition at line 35 of file ArticleSearchIndex.inc.php.
References filterKeywords(), and DAORegistry.getDAO().
Referenced by updateFileIndex(), and updateTextIndex().
| ArticleSearchIndex.indexSuppFileMetadata | ( | &$ | suppFile | ) |
Index supp file metadata.
| $suppFile | object |
Definition at line 189 of file ArticleSearchIndex.inc.php.
References updateTextIndex().
Referenced by SuppFileForm.execute(), and indexArticleFiles().
| & ArticleSearchIndex.loadStopwords | ( | ) |
Return list of stopwords. FIXME Should this be locale-specific?
Definition at line 140 of file ArticleSearchIndex.inc.php.
Referenced by filterKeywords().
| ArticleSearchIndex.rebuildIndex | ( | $ | log = false |
) |
Rebuild the search index for all journals.
Definition at line 236 of file ArticleSearchIndex.inc.php.
References DAORegistry.getDAO(), Config.getVar(), indexArticleFiles(), and indexArticleMetadata().
Referenced by rebuildSearchIndex.execute(), ImportOJS1.rebuildSearchIndex(), and Upgrade.rebuildSearchIndex().
| ArticleSearchIndex.updateFileIndex | ( | $ | articleId, | |
| $ | type, | |||
| $ | fileId | |||
| ) |
Add a file to the search index.
| $articleId | int | |
| $type | int | |
| $fileId | int |
Definition at line 65 of file ArticleSearchIndex.inc.php.
References SearchFileParser.fromFile(), DAORegistry.getDAO(), and indexObjectKeywords().
Referenced by SuppFileForm.execute(), ArticleGalleyForm.execute(), and indexArticleFiles().
| ArticleSearchIndex.updateTextIndex | ( | $ | articleId, | |
| $ | type, | |||
| $ | text, | |||
| $ | assocId = null | |||
| ) |
Add a block of text to the search index.
| $articleId | int | |
| $type | int | |
| $text | string | |
| $assocId | int optional |
Definition at line 52 of file ArticleSearchIndex.inc.php.
References DAORegistry.getDAO(), and indexObjectKeywords().
Referenced by indexArticleMetadata(), and indexSuppFileMetadata().
1.5.6