Modifying search response from elastic search

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

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

Are there any such options available in Elastic search

Any help on this topic is really appreciated.

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

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