Faceted search functionality on MongoDB data