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}`, }));