# Modifying search response from elastic search

**URL:** <https://discuss.elastic.co/t/modifying-search-response-from-elastic-search/230012>\
**Category:** Elasticsearch\
**Created:** [April 27, 2020, 7:13pm UTC](https://discuss.elastic.co/t/modifying-search-response-from-elastic-search/230012 "2020-04-27T19:13:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satya\_Tipathy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/satya_tipathy/32/47498_2.png) [@Satya\_Tipathy](https://discuss.elastic.co/u/Satya_Tipathy)\
**Post date:** [April 27, 2020, 7:13pm UTC](https://discuss.elastic.co/t/modifying-search-response-from-elastic-search/230012/1 "2020-04-27T19:13:03Z")

</div>

Hi, We are currently migrating from SOLR to Elastic Search

currently front-end layer is consuming the response from SOLR. Now once we migrate to Elastic Search, the json contract for the search results are going to change. So I am trying to find some some way though which I can change the response contract so that we don't have do any/very minimal changes at the frontend layer.

SOLR provides response writer options like :-  
[https://lucene.apache.org/solr/guide/8\_5/response-writers.html](https://lucene.apache.org/solr/guide/8_5/response-writers.html)

I have checked on the result templates as mentioned below but its really not meant for response manipulation.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html)

Are there any such options available in Elastic search

---

<div class="post-metadata">

**Author:** ![Satya\_Tipathy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/satya_tipathy/32/47498_2.png) [@Satya\_Tipathy](https://discuss.elastic.co/u/Satya_Tipathy)\
**Post date:** [May 6, 2020, 11:10am UTC](https://discuss.elastic.co/t/modifying-search-response-from-elastic-search/230012/2 "2020-05-06T11:10:09Z")

</div>

Any help on this topic is really appreciated.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 6, 2020, 11:11am UTC](https://discuss.elastic.co/t/modifying-search-response-from-elastic-search/230012/3 "2020-05-06T11:11:31Z")

</div>

I am not aware of anything like that so you may implement it in a proxy layer.

---

<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:** [June 3, 2020, 11:11am UTC](https://discuss.elastic.co/t/modifying-search-response-from-elastic-search/230012/4 "2020-06-03T11:11:40Z")

</div>

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