chapter three
                    3 Ranking and content-based relevance
This chapter covers
- Executing queries and returning search results
 - Ranking search results based on how relevant they are to an incoming query
 - Keyword match and filtering versus vector-based ranking
 - Controlling and specifying custom ranking functions with function queries
 - Catering ranking functions to a specific domain
 
Search engines fundamentally do three things: ingest content (indexing), return content matching incoming queries (matching), and sort the returned content based on some measure of how well it matches the query (ranking). Additional layers can be added, allowing users to provide better queries (autosuggest, chatbot dialogs, etc.) and to extract better answers from the results or summarize the results by using large language models (see chapters 14–15), but the core functions of the search engine are matching and ranking on indexed data.