---
title: "Search execution from query to result"
description: "Trace an invoice search through query encoding, access filters, candidate retrieval, and reranking. Use counts at each stage to diagnose missing results."
canonical_url: "https://fanout.sh/ai-engineering/lessons/search-execution-flow---from-query-to-result"
md_url: "https://fanout.sh/ai-engineering/lessons/search-execution-flow---from-query-to-result.md"
access: "public"
---

# Search execution from query to result

Trace an invoice search through query encoding, access filters, candidate retrieval, and reranking. Use counts at each stage to diagnose missing results.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
