// SERVER-7343: allow $within without a geo index. t = db.geo_box1_noindex; t.drop(); num = 0; for ( x=0; x<=20; x++ ){ for ( y=0; y<=20; y++ ){ o = { _id : num++ , loc : [ x , y ] } t.save( o ) } } searches = [ [ [ 1 , 2 ] , [ 4 , 5 ] ] , [ [ 1 , 1 ] , [ 2 , 2 ] ] , [ [ 0 , 2 ] , [ 4 , 5 ] ] , [ [ 1 , 1 ] , [ 2 , 8 ] ] , ]; for ( i=0; i