In a way, its a search problem where bid≈relevance and targeting_match≈recall, so I've seen Solr used here too.
Reply on news.ycombinator.com