Java API Client toString

Hello,

I am using Java API client, and making searchRequest.

SearchRequest searchRequest = SearchRequest.Builder.index("indexName").. otherBuilder ..build();

String queryCheck = searchRequest.toString();

toString of SearchRequest gives omitted sentence, not full query string when its length is long.

ex) {"content":{"value":"Hello3"}}}]}}]}},{"bo... <- with 3 dots

It seems that toString is already defined in SearchRequest and don't have other options but using it.
Is there any way that I could get full query string?

Thank you.

SearchRequest implements JsonpSerializable so you can get the full request body using SearchRequest#serialize. That said, I expect toString() only starts to truncate the output when your search request body exceeds 10kB, which is pretty large.