From f3e94cea61be93c8a78923c17a3c2ee261f6e3a5 Mon Sep 17 00:00:00 2001 From: devketanpro <73937490+devketanpro@users.noreply.github.com> Date: Fri, 24 Feb 2023 14:45:41 +0530 Subject: [PATCH] add '_type' key in the response (#425) --- server/belga/search_providers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/belga/search_providers.py b/server/belga/search_providers.py index 6479b64f..bddbfeee 100644 --- a/server/belga/search_providers.py +++ b/server/belga/search_providers.py @@ -513,6 +513,7 @@ def format_list_item(self, data): guid = "%s%d" % (self.GUID_PREFIX, data["newsObjectId"]) formatted_data = { "type": self.get_type(data.get("assetType", "text")), + "_type": "externalsource", "mimetype": f"application/superdesk.item.{self.get_type(data.get('assetType', 'text'))}", "pubstatus": "usable", "_id": guid,