Skip to content
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 for package description #14

Open
xq114 opened this issue Aug 11, 2021 · 2 comments
Open

search for package description #14

xq114 opened this issue Aug 11, 2021 · 2 comments

Comments

@xq114
Copy link

xq114 commented Aug 11, 2021

你在什么场景下需要该功能?

希望可以增加选项,在搜索时不仅搜索package name,还搜索description

例如搜索xml的库,写

xrepo search *xml*

就搜不到xerces-c、expat等xml库

描述可能的解决方案

xrepo search -a *xml*

搜索时同时也匹配description

@playgithub
Copy link

playgithub commented Aug 26, 2021

作为附加功能,虽然可能慢,但有时有用
就是有点内卷,网页可能搜到更好的库,然后port到xrepo

@waruqi
Copy link
Member

waruqi commented Aug 27, 2021

目前搜索直接找的 file name 遍历,快且省事,要搜 description 还得每个包加载一遍,即使不加载,走全文检索,还得每个包遍历一遍,会影响效率,比较麻烦,暂时懒得搞了,先直接 web 上搜搜就好了。。这个毕竟只是辅助功能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants