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