I tried this on Linux Mint 21.3 and got the same result.

In fact 1 hour after the note was created the text of the PDF could still not be found. I then set up a file system sync and the PDF text was searchable immediately after the first sync occurred.

It should be clarified that nothing else was being done with Joplin apart from quitting and restarting Joplin once and occasionally searching for words that were only in the PDF. So there may be some other action that also triggers OCR. However under these particular circumstances it appears that OCR data does not get created / indexed or does not get created / indexed within a reasonable time-frame.

Probably an edge-case but also possibly useful to be aware that this can happen.

2 Likes