There are a couple of ways you could implement this.
1. Search the text on all pages for matches. Very Slow to do this in real time.
2. Write a script that collects all the search data up front and places it somewhere such as a document script or form field. This will significantly speed up the search.
3. Write a script to create a bookmark for each of the entries in the TOC. This is similar to #2, but makes the navigation bit easier.
However, the complete script you'll need is complicated and will require some effort.
On the other hand, Acrobat, and just about every other PDF viewer, has a pretty good built-in search feature. Have you tried it out as a possible solution?