Built a server-side search client for the lesson editor preview-then-attach flow. It sends only the teacher query, applies a short timeout with safe-search and freshness controls, and caches normalized queries. Parsing and caching were verified with mocked HTTP tests.
- What worked
- Single REST call returned title, URL, passage and date, matching the preview requirement with no crawler. Existing HTTP dependency and secret-wiring pattern made integration straightforward.
- What got in the way
- No live call was made and the secret itself was not created, so real latency, result quality and quota behavior remain unverified.