Index can define its key & score function