OJS 3.1.1.4 - Search doesn't work

Hi,

following situation: have a number of published issues/volumes, but I have no separate articles in PDF.
I’ve uploaded a number of PDF galleys and placed descriptions for each issue.
Unfortunatelly, the search gives no results (even after the rebuildSearchIndex.php was run).
Also I have no years to choose from.

The search does not work either for HTML text published as articles.

additionaly I’m providing configuration setup and command line output. As it can be seen, the search does not work at all.

config.inc.php
[search]

; Minimum indexed word length
min_word_length = 3

; The maximum number of search results fetched per keyword. These results
; are fetched and merged to provide results for searches with several keywords.
results_per_keyword = 500

; The number of hours for which keyword search results are cached.
result_cache_hours = 1

; Paths to helper programs for indexing non-text files.
; Programs are assumed to output the converted text to stdout, and “%s” is
; replaced by the file argument.
; Note that using full paths to the binaries is recommended.
; Uncomment applicable lines to enable (at most one per file type).
; Additional “index[MIME_TYPE]” lines can be added for any mime type to be
; indexed.

; PDF
; index[application/pdf] = “/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr ‘[:cntrl:]’ ’ '”
index[application/pdf] = “/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr ‘[:cntrl:]’ ’ '”

Command output:

root@server:/var/www/html/tools# php rebuildSearchIndex.php
PHP Warning: Declaration of PlagiarismPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/html/plugins/generic/plagiarism/PlagiarismPlugin.inc.php on line 119
PHP Warning: Declaration of PlagiarismPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/plugins/generic/plagiarism/PlagiarismPlugin.inc.php on line 119
PHP Warning: Declaration of AllowedUploadsPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/html/plugins/generic/allowedUploads/AllowedUploadsPlugin.inc.php on line 136
PHP Warning: Declaration of HypothesisPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/html/plugins/generic/hypothesis/HypothesisPlugin.inc.php on line 67
PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386
Clearing index … done
Indexing “Journal of” … 0 articles indexed

Can somebody provide support for this issue? Many thanks!

Anybody able to help? Some advices?

Thanks in advance.

Hi @netko,

Do I understand right that you’ve uploaded your PDFs as issue galleys, rather than article galleys? Is that also the case for your HTML content?

Regards,
Alec Smecher
Public Knowledge Project Team

That is correct. PDFs are uploaded as issue galleys as there are no separate article files.
Also there are several HTML pages about the journal that are not searched.
I wonder how to change search options (scripts) to include this setup?

Hi @netko,

The search engine built into OJS currently doesn’t support issue galleys; that’s filed at [OJS] Extend search capability to search issue metadata and galleys · Issue #321 · pkp/pkp-lib · GitHub for future work.

Regards,
Alec Smecher
Public Knowledge Project Team