Skip to content

Commit

Permalink
fix(orama): use _omc:number instead of _omc (#852)
Browse files Browse the repository at this point in the history
Will require a reindex afterwards
  • Loading branch information
crowlKats authored Nov 26, 2024
1 parent e95b873 commit 4ca1b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/orama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
]
});
Expand Down
2 changes: 1 addition & 1 deletion tools/orama_package_reindex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
}));

Expand Down

0 comments on commit 4ca1b7f

Please sign in to comment.