i think this should use generators and the non ids-only version of this should use iter_docs. otherwise `Case.by_domain("bihar")` will likely DoS the server.