use of org.apache.lucene.queries.function.valuesource.TotalTermFreqValueSource in project lucene-solr by apache.
the class TestValueSources method testTotalTermFreq.
public void testTotalTermFreq() throws Exception {
ValueSource vs = new TotalTermFreqValueSource("bogus", "bogus", "text", new BytesRef("test"));
assertHits(new FunctionQuery(vs), new float[] { 4f, 4f });
assertAllExist(vs);
}
Aggregations