2 ms·
Perhaps it also keeps an index of pairs of adjacent words. Another thing is that your query is essentially a literal "substring" search, which Google probably
by amelius 7y ago
Perhaps it also keeps an index of pairs of adjacent words.
Another thing is that your query is essentially a literal "substring" search, which Google probably handles differently. See e.g. the Burrows Wheeler transform for an idea how it could be implemented.