Since search engines don't go through every webpage on the internet when searching for something, how are they able to find an exact string of words? For example, using quotes in Google, like "apples bananas pears" will only show results that contain those three words in that exact order.
closed as unclear what you're asking by gnat, Doc Brown, Bart van Ingen Schenau, user40980, GlenH7♦ Sep 27 '15 at 17:26
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Never underestimate how much computing power may be brought to bear on a problem.
A web crawler typically pulls down the entire web page and all linked or included pages and creates indices and rankings several times the original size of the web page. Somewhere, it keeps a copy of the entire page as well. Google is known for having the largest backup of the 'deep' webpages for obscure searches.
To do a full text search, a faster service typically does a search without the quotes and then filters the results. It will not find all hits, but users are usually happy if one of the first two results are relevant. In some cases, the results are a bit slower as the filtering eliminates a lot of responses.
So power. And cheating.