use of org.apache.lucene.queries.function.valuesource.MultiValuedFloatFieldSource in project lucene-solr by apache.
the class TestValueSources method testFloatMultiValued.
public void testFloatMultiValued() throws Exception {
ValueSource vs = new MultiValuedFloatFieldSource("floatMv", Type.MAX);
assertHits(new FunctionQuery(vs), new float[] { 3.69f, 123.456f });
assertAllExist(vs);
vs = new MultiValuedFloatFieldSource("floatMv", Type.MIN);
assertHits(new FunctionQuery(vs), new float[] { -0.11f, 0.01f });
assertAllExist(vs);
}
Aggregations