fulltextsearch icon indicating copy to clipboard operation
fulltextsearch copied to clipboard

full text search doesn't work

Open Ourithi opened this issue 4 years ago • 8 comments

Hello,

I am trying to run full text search with tesseract OCR on an apache2 nextcloud 20.0.10 webserver. The full text search feature works with documents that were already present on the nextcloud server (the nextcloud manual for example) but when i create a new pdf and add it to the server it doesn't work. The tests and first index work fine. There is nothing in the apache error log. Any ideas?

Ourithi avatar May 25 '21 08:05 Ourithi

Is the adding part or the ocr part done via script or via the nextcloud webinterface?

thomasgg23 avatar May 25 '21 12:05 thomasgg23

Is the adding part or the ocr part done via script or via the nextcloud webinterface?

it is done via the nextcloud web interface

Ourithi avatar May 25 '21 13:05 Ourithi

On a side note I meddled here and there and now I get the following error when trying to run the index (after having cleared the indexes table): "call to a member function getContent() on string in ./files_fulltextsearch/lib/Service/FilesService.php:761"

Ourithi avatar May 25 '21 13:05 Ourithi

I fixed the error but it still doesn't work. I think it's related to the whole full text search having problems with pdf files and all. Does anybody have an idea?

Ourithi avatar May 26 '21 09:05 Ourithi

I checked our installation and we dont use the Full Text tesseract script. We convert the files with a local script and ocrmypdf and then run the occ command to index them again. Works for several months now.

There is an flow "Workflow OCR" which also uses ocrmypdf to convert any new pdf file uploaded. Perhaps you should check this one out. https://github.com/R0Wi/workflow_ocr

thomasgg23 avatar May 26 '21 09:05 thomasgg23

check if you have Group Folder feature enable, try to disabled it https://github.com/nextcloud/fulltextsearch/issues/634

sinichi19 avatar May 28 '21 01:05 sinichi19

does your PDF contain text layer ?

  • if yes, check that the PDF option in Admin Settings/Full Text Search is enabled
  • if no, check the configuration of your tesseract

ArtificialOwl avatar Aug 10 '21 12:08 ArtificialOwl

please paste result of ./occ fulltextsearch:check

ArtificialOwl avatar Aug 10 '21 12:08 ArtificialOwl

Closing due to "needs info" after 3 years. :)

joshtrichards avatar Mar 07 '24 16:03 joshtrichards