+-------+
| Start |
+-------+
|
v
+-----------------+
| User enters query|
+-----------------+
|
v
+--------------------------+
| Search engine looks in |
| its index for matches |
+--------------------------+
|
v
+--------------------------+
| Retrieve matching pages |
+--------------------------+
|
v
+--------------------------+
| Rank results by relevance|
+--------------------------+
|
v
+--------------------------+
| Show results to user |
+--------------------------+
|
v
+-------+
| End |
+-------+This flowchart starts with the user entering a search query. The search engine then looks into its index, which is like a big list of all the web pages it knows about. It finds pages that match the query. Next, it ranks these pages by how relevant they are to the query, so the best matches come first. Finally, it shows the ranked results to the user. The flowchart ends after showing the results.