# Elastic SearchResponse - How to get raw response result

**URL:** <https://discuss.elastic.co/t/elastic-searchresponse-how-to-get-raw-response-result/291999>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [December 15, 2021, 2:56pm UTC](https://discuss.elastic.co/t/elastic-searchresponse-how-to-get-raw-response-result/291999 "2021-12-15T14:56:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thadc](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@thadc](https://discuss.elastic.co/u/thadc)\
**Post date:** [December 15, 2021, 2:56pm UTC](https://discuss.elastic.co/t/elastic-searchresponse-how-to-get-raw-response-result/291999/1 "2021-12-15T14:56:19Z")

</div>

I have a need to get the raw response from the Elasticsearch SearchResponse object. We have situations where navigating the hits/aggregations-based structure is too rigid for our formatting the response back to user. Grateful for any insights. Thanks.

Note: If this is the wrong forum area for elastic java API, please let me know and I will move post to more appropriate area. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 12, 2022, 2:57pm UTC](https://discuss.elastic.co/t/elastic-searchresponse-how-to-get-raw-response-result/291999/2 "2022-01-12T14:57:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
