Full text search not working


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?