Problem
Visitors who come from an ad (search engine, social media, external blog) land on a page that shows one activity on top, the "elevated activity", followed by other activities in the same city. The rest of the page shows other activities in the same city, ordered by the normal popularity ranking. The team assumed that interest in the elevated activity says more than the city. It also points to other properties of that activity.
Example from the article: a visitor reads a blog post, clicks a GetYourGuide ad for one activity, and sees that activity first, then the usual popular activities for the city.
Solution in brief
Describe each activity by a 300-dimensional vector learned from user journeys, so that activities visited in similar journeys get similar vectors. After the normal search returns the matching activities, fetch the vector of the elevated activity, find similar activities with k-NN search, and re-rank by .
Questions this case answers
- How to rank a results list around a single known item of interest when the visitor gave no query beyond a location
- How to add behavior-based item similarity to an existing keyword search engine without rewriting the retrieval pipeline
- How to re-rank a landing-page results list around the one item the visitor clicked in an ad
- How to define item similarity from user behavior and use it inside an existing search engine
Tools and methods
- Word2Vec — trains activity vectors, treating pages as words and user journeys as sentences
- Elasticsearch / OpenSearch — stores the activity vectors in a separate index and runs k-NN search
- k-nearest neighbors with a scoring script — returns cosine similarity to the elevated activity
- Score blending — combines the popularity score with similarity into one ranking score
- A/B test — measures the effect on business metrics
Google or a one-time email code. No password.