A Matching Framework for Entity-Based Aggregation