how does sharepoint search work for lists and libraries code example

Example: how does sharepoint search work for lists and libraries

In lists and libraries, site columns store detailed information about each document.

1. Search crawls the lists and libraries and adds the site columns and values to the search index.
2. In the search index, site columns are mapped to managed properties.
3. When a user enters a query in a search box, the query is sent to the search index.
4. The search engine finds matching results, and sends them to a search results page.