Matthew Kong

Case studies/Zillow, 2024

Room listings and rental search filters

A typed property, unit and listing hierarchy so a room never shows up priced and sorted like a whole apartment.

Laptop on a desk showing an editor full of code
  1. Partner feed
  2. Normalizer
  3. Listing DB
  4. Index write stream
  5. Search index
  6. GraphQL search
  7. Web and mobile filters

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

  1. Define the business invariants and product terminology for a shared room versus a private apartment.
  2. Add the versioned schema and normalizer, backfill a limited partner dataset and store source lineage.
  3. Extend search index facets, queries and UI filter affordances behind feature toggles.
  4. Validate parity against the relational source and run relevance snapshot tests.
  5. 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

Scale figures are the sizing model behind the design. Targets are acceptance criteria, not measured results.

The trade-off I would defend

Property, rentable unit and listing stay distinct. Conflating them is exactly where deduplication and price errors come from.