Skip to content

Commit 4ca1b7f

Browse files
authored
fix(orama): use _omc:number instead of _omc (jsr-io#852)
Will require a reindex afterwards
1 parent e95b873 commit 4ca1b7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/orama.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl OramaClient {
7777
"description": &package.description,
7878
"runtimeCompat": &package.runtime_compat,
7979
"score": score,
80-
"_omc": score.unwrap_or(0),
80+
"_omc:number": score.unwrap_or(0),
8181
}
8282
]
8383
});

tools/orama_package_reindex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const entries: OramaPackageHit[] = packages
6363
description: entry.description,
6464
runtimeCompat: entry.runtimeCompat,
6565
score: entry.score,
66-
_omc: entry.score ?? 0,
66+
"_omc:number": entry.score ?? 0,
6767
id: `@${entry.scope}/${entry.name}`,
6868
}));
6969

0 commit comments

Comments
 (0)