From 4ca1b7f4a6941b7e079ffb04a3da253f6be2eb30 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 26 Nov 2024 13:34:44 -0800 Subject: [PATCH] fix(orama): use _omc:number instead of _omc (#852) Will require a reindex afterwards --- api/src/orama.rs | 2 +- tools/orama_package_reindex.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/orama.rs b/api/src/orama.rs index 36d48d90..bd1a8056 100644 --- a/api/src/orama.rs +++ b/api/src/orama.rs @@ -77,7 +77,7 @@ impl OramaClient { "description": &package.description, "runtimeCompat": &package.runtime_compat, "score": score, - "_omc": score.unwrap_or(0), + "_omc:number": score.unwrap_or(0), } ] }); diff --git a/tools/orama_package_reindex.ts b/tools/orama_package_reindex.ts index b4e0c53f..eb7ca774 100644 --- a/tools/orama_package_reindex.ts +++ b/tools/orama_package_reindex.ts @@ -63,7 +63,7 @@ const entries: OramaPackageHit[] = packages description: entry.description, runtimeCompat: entry.runtimeCompat, score: entry.score, - _omc: entry.score ?? 0, + "_omc:number": entry.score ?? 0, id: `@${entry.scope}/${entry.name}`, }));