Atlas Search Index: Filter out docs with a field that has an empty string

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