Thanks @DarshanJayarama. Could you please shed some light on the inner workings of gt? How does it know to pick up documents with the empty string when the condition is doing a comparison with a numeric value?
Also, is there a similar hack to check for empty arrays as well?
Regards,
Prasad