Package org.apache.lucene.search.tests

Source Code of org.apache.lucene.search.tests.PwaLinInlinksTest

package org.apache.lucene.search.tests;

import org.apache.lucene.search.rankers.queryindependent.PwaLinInlinks;

import junit.framework.*;


/**
* Test LinInlinks
* @author Miguel Costa
*/
public class PwaLinInlinksTest extends TestCase {

  protected void setUp() throws Exception {
  }

  protected void tearDown() throws Exception {
  }

  public void testScore() {       
    PwaLinInlinks ranker=new PwaLinInlinks(0)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(1)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(3)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(5)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(10)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(100);   
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(1000)
    System.out.println(ranker.score());
    ranker=new PwaLinInlinks(10000)
    System.out.println(ranker.score());
        assertTrue(true);   
  }

}
TOP

Related Classes of org.apache.lucene.search.tests.PwaLinInlinksTest

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.