Examples of PwaNumberVersions


Examples of org.apache.lucene.search.features.temporal.PwaNumberVersions

  }

  public void testScore() { 
    long nVersions=100;   
    long maxVersions=1000;   
    PwaNumberVersions ranker=new PwaNumberVersions(nVersions, maxVersions);     
    System.out.println(""+ranker.score());
    assertEquals(ranker.score(),(float)2/(float)3);
     
    nVersions=1000;   
    maxVersions=1000;   
    ranker=new PwaNumberVersions(nVersions, maxVersions);     
    System.out.println(""+ranker.score());
    assertEquals(ranker.score(),(float)3/(float)3);
   
 
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.