Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
asmecher wrote:Hi Niels Erik,
What do you have in your config.inc.php in your [search] section for PDF indexing? If you have a tool configured there, but it's not working, you could try running a few articles through the same tool on the command line to see whether or not the tool is the problem or OJS isn't indexing the results successfully.
index[application/pdf] = "/usr/bin/pdftotext %s -"
// Update search index
import('classes.search.ArticleSearchIndex');
ArticleSearchIndex::indexArticleMetadata($article);
ArticleSearchIndex::indexArticleFiles($article);asmecher wrote:Hi tgc,
Looks good so far. The indexing should occur when Step 5 of the submission process is confirmed. Look in classes/author/form/submit/AuthorSubmitStep5Form.inc.php for the following lines:
- Code: Select all
// Update search index
import('classes.search.ArticleSearchIndex');
ArticleSearchIndex::indexArticleMetadata($article);
ArticleSearchIndex::indexArticleFiles($article);
If you suspect that's not being executed, try throwing in some debugging output to double-check.
// Index galley files
$fileDao =& DAORegistry::getDAO('ArticleGalleyDAO');
$files =& $fileDao->getGalleysByArticle($article->getId());
$result =& $this->retrieve(
'SELECT g.*,
a.file_name, a.original_file_name, a.type, a.file_type, a.file_size, a.date_uploaded, a.date_modified
FROM article_galleys g
LEFT JOIN article_files a ON (g.file_id = a.file_id)
WHERE g.article_id = ? ORDER BY g.seq',
$articleId
);
asmecher wrote:Hi tgc,
Just to make sure I know where to start looking -- the problem is that PDF fulltext isn't being indexed as it's added, correct? Running the indexing tool (tools/rebuildSearchIndex.php) does correct the problem temporarily (i.e. until new content is added), correct?
asmecher wrote:Yes, that answers my question -- the "expedite" process is the same as the "click here" button you're talking about. See the patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6765 mentioned in comment #3 -- that should add the indexing that you're missing. Please give it a try and report back here.
Return to OJS Technical Support
Users browsing this forum: Alexa [Bot], Bing [Bot], Google [Bot] and 4 guests