use of org.apache.lucene.queries.function.valuesource.MultiValuedIntFieldSource in project lucene-solr by apache.
the class TestValueSources method testIntMultiValued.
public void testIntMultiValued() throws Exception {
ValueSource vs = new MultiValuedIntFieldSource("intMv", Type.MAX);
assertHits(new FunctionQuery(vs), new float[] { 7f, 900f });
assertAllExist(vs);
vs = new MultiValuedIntFieldSource("intMv", Type.MIN);
assertHits(new FunctionQuery(vs), new float[] { 1f, -1f });
assertAllExist(vs);
}
Aggregations