Notebooks.app on mobile will search OCRd pdfs and markdown or plain text files in its library (which is just a folder). I don’t own DevonThink, but I’ve heard its database can include folders not “within” its database. So perhaps a solution is DT on Mac and Notebooks on mobile. But I can’t verify this unfortunately