use of org.apache.lucene.search.similarities.IndependenceChiSquared in project lucene-solr by apache.
the class TestDFISimilarityFactory method test.
/**
* dfi with no parameters
*/
public void test() throws Exception {
Similarity sim = getSimilarity("text");
assertEquals(DFISimilarity.class, sim.getClass());
DFISimilarity dfi = (DFISimilarity) sim;
assertTrue(dfi.getDiscountOverlaps());
assertTrue(dfi.getIndependence() instanceof IndependenceChiSquared);
}
Aggregations