fix various ranked relevance bugs caused by old code
Merge branch 'master' of github.com:clovis/PhiloLogic4