24/36
Part 3 of 5 · Ranking and featuresLearn

Location: the query's city paired with the listing's map cell

One cross feature in the 2019 paper earned its own learned vector: where the listing sits, read against where the guest is searching.

The paper built it from two things: the city in the query, and the map cell that holds the listing. S2 is a library that cuts the globe into cells, and level 12 is the cell size it used. The pair is hashed to one integer, and that integer gets its own learned vector.

The paper's own example: the query city San Francisco, plus a listing near the Embarcadero in S2 cell 539058204, hash to 71829521. That integer has one learned vector for that pair.

The model learned which neighborhoods guests prefer in each city. That replaced a heavily engineered pipeline.