Inverted indexes

Let’s say that we have 3 web pages with this content:

_images/45.png

From there, let’s build a hash table from that:

_images/46.png

Now let’s say that the user searched for **there.** Now we easily know that we can display pages A and C. We’re essentially creating a hash that can map words to places where they appear (web pages). This is exactly what inverted indexes are.