Add minimum length to query