Package org.jayasoft.woj.common.model.search

Examples of org.jayasoft.woj.common.model.search.Hit.addRevision()


              results.add(hit);
            }
            countModuleHit++;
          }
          // not stricly necessary, but sometimes lucene doesn't find the revisions in the second step...
          hit.addRevision(doc.get("path"), doc.get("revision"));
        }
        Long nextResults =  i == hits.length()?null:new Long(startIndex+RESULTS_PER_PAGE);
        Long previousResults = startIndex == 0?null:new Long(startIndex-RESULTS_PER_PAGE);
       
        // then we fill in revisions
View Full Code Here


          +" AND module:"+hit.getModule()
          +" AND fqcn:"+hit.getClassname()
      )));
      for (i = 0; i < hits.length(); i++) {
              Document doc = hits.doc(i);
              hit.addRevision(doc.get("path"), doc.get("revision"));
      }
    }
       
        is.close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.