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