Bug 5715 - Advanced search doesn't limit results, can freeze the server