-
Notifications
You must be signed in to change notification settings - Fork 8
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search support #23
Comments
onelson
added a commit
that referenced
this issue
Feb 15, 2021
This implements the `GET /api/v1/crates` which allows `cargo search` to work. This search implementation is very naive, and will be improved once we have a database in place as our primary source for package info. In the future the file system and git log will no longer be needed to respond to requests like this, but for now these are the primary sources. Fixes #23.
Merged
onelson
added a commit
that referenced
this issue
Feb 15, 2021
This implements the `GET /api/v1/crates` which allows `cargo search` to work. This search implementation is very naive, and will be improved once we have a database in place as our primary source for package info. In the future the file system and git log will no longer be needed to respond to requests like this, but for now these are the primary sources. Fixes #23.
onelson
added a commit
that referenced
this issue
Feb 15, 2021
This implements the `GET /api/v1/crates` which allows `cargo search` to work. This search implementation is very naive, and will be improved once we have a database in place as our primary source for package info. In the future the file system and git log will no longer be needed to respond to requests like this, but for now these are the primary sources. Fixes #23.
onelson
added a commit
that referenced
this issue
Feb 15, 2021
This implements the `GET /api/v1/crates` which allows `cargo search` to work. This search implementation is very naive, and will be improved once we have a database in place as our primary source for package info. In the future the file system and git log will no longer be needed to respond to requests like this, but for now these are the primary sources. Fixes #23.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Part of the spec for alternate registries includes a search endpoint. Once built, it should be possible to offer a search UI in the frontend that uses this endpoint.
The actual implementation of the search index can be naive for this. We might be able to offer better matching with better performance once we adopt some kind of database to record package details. I think sqlite and postgres both offer extensions for full-text searching. For now, just do some clumsy substring matching on the package names.
The text was updated successfully, but these errors were encountered: