I don't have a lot of PDFs in my Joplin database but I do have a couple that were pre-version 7 and I cannot search for text inside those documents. If I add a new PDF I can search it perfectly.
Just came up with an idea that works. In the search box I searched for this.
resource:application/pdf
This brings up a list of all of your notes that contain a PDF file attachment. I exported one of the notes that had PDF attachments then deleted the note and then re imported and now it is searchable.
Each of my pdf documents that I failed to scan Do have OCR text associated with them when you right click