protected void assertSameScores(Query q1,Query q2) throws Exception {
  assertSameSet(q1,q2);
  assertSameScores(q1,q2,null);
  int numFilters=TEST_NIGHTLY ? atLeast(10) : atLeast(3);
  for (int i=0; i < numFilters; i++) {
    Query filter=randomFilter();
    assertSameScores(q1,q2,filter);
    assertSameScores(filteredQuery(q1,filter),filteredQuery(q2,filter),null);
  }
}

protected void assertSameScores ( Query q1 , Query q2 ) throws Exception { assertSameSet ( q1 , q2 ) ; assertSameScores ( q1 , q2 , null ) ; int numFilters = TEST_NIGHTLY ? atLeast ( 10 ) : atLeast ( 3 ) ; for ( int i = 0 ; i < numFilters ; i ++ ) { Query filter = randomFilter ( ) ; assertSameScores ( q1 , q2 , filter ) ; assertSameScores ( filteredQuery ( q1 , filter ) , filteredQuery ( q2 , filter ) , null ) ; } }
assert that two queries return the same documents and with the same scores .
