How to fetch only Public or Private IP in ES?

Queries on "ip_range" type (missing documentation) has some good pointers on that.