funct+=5;
}
// temporal features - local timestamps
if (functions.hasFunction(funct) || functions.hasFunction(funct+1) || functions.hasFunction(funct+2)) {
PwaDateCache cache=new PwaDateCache(null); // already initialized
long timestamp=cache.getTimestamp(doc);
//long minTimestamp=cache.getMinTimestamp();
//long maxTimestamp=cache.getMaxTimestamp();
if (functions.hasFunction(funct)) {
scores.addScore(funct, ((float)queryTimestamp) / PwaIRankingFunction.DAY_MILLISEC); // Query issue time in days
}
funct++;
if (functions.hasFunction(funct)) {
scores.addScore(funct, (new PwaAge(timestamp,queryTimestamp)).score()); // Age in days from query issue time
}
funct++;
if (functions.hasFunction(funct)) {
scores.addScore(funct, ((float)timestamp) / PwaIRankingFunction.DAY_MILLISEC); // Version's timestamp in days
}
funct++;
}
else {
funct+=3;
}
// temporal features - global timestamps
boolean temporalGlobalUsed=false;
for (int i=funct; !temporalGlobalUsed && i<funct+9; i++) {
if (functions.hasFunction(i)) {
temporalGlobalUsed=true;
}
}
if (temporalGlobalUsed) {
PwaDateCache cache=new PwaDateCache(null); // already initialized
long timestamp=cache.getTimestamp(doc);
int nVersionsURL;
long minTimestampURL;
long maxTimestampURL;
UrlRow row=null;