Discourse's own search, the one that comes up first, is definitely
supposed to search the whole thread, that's the whole point of it. Discourse does a lot of loading/unloading the page as you scroll on these big infinite-scroll threads so the native browser search would be not so useful, in the way you describe.
I don't notice the Discourse one having any trouble searching the whole thread as advertised here though.