How do I implement type-ahead search?

I have more than 10K posts, so I want to implement only for a sub-set of the posts.