jsr icon indicating copy to clipboard operation
jsr copied to clipboard

Search ranks unpublished packages first

Open kitsonk opened this issue 1 year ago • 4 comments

It appears that search ranks unpublished modules at the top. For example:

https://jsr.io/packages?search=kv

Returns:

kv_-Packages-_JSR

Where the "top" package is currently unpublished: https://jsr.io/@ts-rex/kv-spy

kitsonk avatar Mar 20 '24 22:03 kitsonk

So currently search is unranked and not based on the score. Unpublished packages should then be treated like as having a score of 0. However this is blocked by orama not supporting weighting results yet

crowlKats avatar Mar 20 '24 23:03 crowlKats

So what is the ordering, arbitrary? Alphabetical by package name, versus scope?

I guess why would you want unpublished packages in the search results anyways?

kitsonk avatar Mar 20 '24 23:03 kitsonk

the ordering is completely arbitrary by orama, and we currently have 0 influence on it.

I guess why would you want unpublished packages in the search results anyways?

users expect to be able to search their package once they create it, else they think that the system isn't working even though that is not the case

crowlKats avatar Mar 21 '24 15:03 crowlKats