Java Client - Aggregation via JSON query

Using TCP client in elasticsearch, aggregation is possible through AggregationBuilder. Through JEST client (HTTP REST based) it is possible to implement aggregation through query String. When I tried to implement querystring in TCP, it did not retrieve aggregation results.

Is there any reason why TCP do not support aggregation through query string but supports with adding aggregation options?