Package org.s3b.search.tools

Examples of org.s3b.search.tools.HistoryStore


      //logger.info("END RUN: " + (6-counter));
    }
   
   
    /* adding all visited to the long term history */
    HistoryStore hist = HistoryStore.getInstance();
    hist.addVisits(m2resource.Visited);
    hist.addTerms(queryList, m2resource.person);
    //logger.info("SEMANTIC RUNS: " + (6 - counter));
    //logger.info("RESULTS SEMANTIC END2: " + rescount);
    //logger.info("LIST QUERY: ");
    String tempik="";
    /*
 
View Full Code Here


   */
  @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())
View Full Code Here

TOP

Related Classes of org.s3b.search.tools.HistoryStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.