Elasticsearch javaApi

You can do response filtering using REST api, but I'm not sure the java api supports this. According to How to use filter_path in java api? you can't use it.