Context-Based Matching: Design of a Flexible Framework and Experiment