*/
@SuppressWarnings("unchecked")
private ResultObject weightResults(List<Visit> visits,
Person person) {
List<Visit> oldvisits = new ArrayList<Visit>();
HistoryStore hist = HistoryStore.getInstance();
hist.getVisits(person, oldvisits);
// System.out.println("History boost: " + authorHitBoost);
for(IndexResource result : resultObject.getResults()){
if(!result.isRankComputed()){ //only weight those results that haven't been processed before
findResultInHistory(result,oldvisits);
}
}
Map<URI,Double> termsList = new HashMap<URI,Double>();
termsList = hist.getTerms(person);
URI res;
for(QueryParameterEntry ex : queryList)
{
if(ex.isWordnetType())