228229230231232233234235
assertHits(new FunctionQuery(new LongFieldSource("long")), new float[] { 4343f, 1954f }); } public void testMaxDoc() throws Exception { assertHits(new FunctionQuery(new MaxDocValueSource()), new float[] { 2f, 2f }); }