adapt the ranked relevance HitWrapper, and prepare move to libphilo