added id
Browse files
App/Embedding/utils/Elastic.py
CHANGED
@@ -30,6 +30,7 @@ def FetchDocuments(ids):
|
|
30 |
response=[]
|
31 |
for data in res["hits"]["hits"]:
|
32 |
temp=data["inner_hits"]["simple"]["hits"]["hits"][0]['_source']
|
|
|
33 |
|
34 |
response.append(temp)
|
35 |
return response
|
|
|
30 |
response=[]
|
31 |
for data in res["hits"]["hits"]:
|
32 |
temp=data["inner_hits"]["simple"]["hits"]["hits"][0]['_source']
|
33 |
+
temp['_id']=data["inner_hits"]["simple"]["hits"]["hits"][0]['_id']
|
34 |
|
35 |
response.append(temp)
|
36 |
return response
|