Why this work, at that time
Zillow added individual rooms to rental search in February 2024, which stretched listing schemas and search semantics that had assumed whole units.
The problem
A room inside a home is not a rental unit. Search had to preserve meaningful price, location, housing type, privacy and deduplication semantics once both were in the same index.
The team and my part
Eight engineers: two ingestion and data, two search backend, two web and mobile, one QA automation, one senior lead, with PM and UX research shared. I drove the schema and API filter contract and mentored a junior developer.
Data and index design
property(id, geo); rentable_unit(id, property_id, unit_type, capacity); listing(id, unit_id, listing_type, monthly_price, currency, status); search_doc(listing_id, index_version, facets). Indexed by listing_type, price and geo cell.
API and event contract
GET /rentals/search?listing_type=room&max_price=…&bounds=…; GraphQL RentalSearchResult {listingType, priceBasis, propertyId, unitId}. The cursor carries a deterministic score and id.
Core logic
Normalize raw listing_type to ROOM or WHOLE_UNIT, inherit only allowed property attributes, convert display prices to a comparable monthly basis, and index with a versioned payload. Dedupe only within the same rentable unit, never across a building.
Implementation sequence
- Define the business invariants and product terminology for a shared room versus a private apartment.
- Add the versioned schema and normalizer, backfill a limited partner dataset and store source lineage.
- Extend search index facets, queries and UI filter affordances behind feature toggles.
- Validate parity against the relational source and run relevance snapshot tests.
- A/B pilot by geography, monitor null prices, wrong-type leaks and search latency, then expand gradually.
Environments and release
GraphQL frontend with the search service and index. Synthetic partner feeds in staging; canary rebuild with an index alias swap and rollback.
Failure drill
A partner supplies a room as a whole-apartment listing. Reject or quarantine the ambiguous feed rather than present a misleading unit type or price.
Scale and targets
Modeled scale
- About 140K listings including rooms, with 3.8M property attribute rows
- 1.2M search calls per day, 13.9 RPS average, roughly 560 RPS peak
- About 75K index updates per day
Acceptance targets
- Common filter query p95 under 450 ms
- Wrong listing types under 0.2%
- Search relevance held stable through the A/B
The trade-off I would defend
Property, rentable unit and listing stay distinct. Conflating them is exactly where deduplication and price errors come from.
