How to search documents containing empty array?

I have documents like

"doc" : {
 "id" : 1,
  "comments": ["my comment"]
},

"doc" : {
 "id" : 2,
  "comments": []
}

How to search for documents which DO NOT CONTAIN any comments?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.