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