This visual execution trace shows how Elasticsearch processes wildcard and prefix queries. The query starts by parsing the JSON input, then identifies if it is a prefix or wildcard query. For a wildcard query like 'ki*y', it builds the pattern and searches the index for matching documents. The example finds documents with user fields like 'kitty' and 'kiry'. Variables like query_type, pattern, and matched_docs change step by step. Key moments clarify why '*' is used and how prefix queries differ. The quiz tests understanding of pattern usage and query type identification. The snapshot summarizes the main points for quick recall.