@d0za hi!
Your best bet to implement that search is to use Algolia.
Searching pdf isn’t like searching text, but they have some tips on indexing and then searching longer form content:
And ways to extract the content from PDFs:
https://stories.algolia.com/indexing-pdf-or-other-file-contents-for-searching-b2499c23568f