I need to reduce the response size of elastic search query, So I found one way to use Response Filtering through filter_path parameter in URL.
But I couldn't find any way to implement response filtering in Java API,
While googling, I have also seen one
FilterPath.java class in elastic search, but I couldn't find any example of it. Even I am not sure whether this class can be used for this purpose or not.
Please suggest me any way to implement response filtering in Java. Thanks