@ejfdelgado/ejflab-back 1.20.4 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/srv/MilvusSrv.mjs +3 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ejfdelgado/ejflab-back",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.22.0",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/ejfdelgado/ejflab-back.git"
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"license": "ISC",
|
19
19
|
"private": false,
|
20
20
|
"dependencies": {
|
21
|
-
"@ejfdelgado/ejflab-common": "1.
|
21
|
+
"@ejfdelgado/ejflab-common": "1.14.0",
|
22
22
|
"@google-cloud/compute": "^4.7.0",
|
23
23
|
"@google-cloud/firestore": "^7.9.0",
|
24
24
|
"@google-cloud/storage": "^7.11.3",
|
package/srv/MilvusSrv.mjs
CHANGED
@@ -318,12 +318,13 @@ export class MilvusSrv {
|
|
318
318
|
};
|
319
319
|
const results = await client.search(searchPayload);
|
320
320
|
if (results.status.code != 0) {
|
321
|
-
throw new MyError(results.status.error_code+". "+results.status.reason)
|
321
|
+
throw new MyError(results.status.error_code + ". " + results.status.reason)
|
322
322
|
}
|
323
|
+
//console.log(JSON.stringify(results, null, 4));
|
323
324
|
response.results = [results.results.map((entity) => {
|
324
325
|
return {
|
325
326
|
id: entity.id,
|
326
|
-
distance:
|
327
|
+
distance: entity.score,//is it the same?
|
327
328
|
entity
|
328
329
|
};
|
329
330
|
})];
|