make ranked relevance work with new query parser, refine ranking algorithm