How big does an index get? 2x the content? 10x the content?
Lunr has an analysis pipeline that will generate a bunch of tokens for queries to match on, and you can do pretty much anything there.
It won't scale to thousands of pages, but I don't have thousands of them anyway :-)