You need to add $search->setSlize( 0, 0x7fffffff );
Otherwise you will only get the first 100 entries