*/
public float score() throws IOException {
if (scoreType==ScoreType.NORMAL) {
PwaRawFeatureCollector collector=new PwaRawFeatureCollector(reader);
joiner.collectFeatures(doc(),collector);
PwaScores scores=PwaScorerFeatures.score(doc(),queryTimestamp,collector,joiner.getPositionsManager(),searcher,functions);
return (new PwaLinearRankingModel()).score(functions, scores); // TODO parameterize the ranking model in the future
}
else if (scoreType==ScoreType.DATE_SORTED || scoreType==ScoreType.DATE_SORTED_REVERSE) { // results are sorted in TopDocCollector
PwaDateCache sortCache=new PwaDateCache(reader);
return sortCache.getTimestamp(doc());