4 ms·
One of the (among many) reasons I stopped using GH code search is that the default ranking algorithm is extremely poor. Search relevance is awful, especially wh
by lopkeny12ko 3y ago
One of the (among many) reasons I stopped using GH code search is that the default ranking algorithm is extremely poor. Search relevance is awful, especially when it comes to surfacing forks.
90+% of the time I'm executing a code search, I'm looking for example uses of a library API in open source code. But most of the time, Github code search just surfaces pages upon pages of the same exact code snippet across the origin repository and hundreds of forks.
For example, one search I executed earlier today: https://github.com/search?q=load%28%22%40rules_foreign_cc%2F%2Fforeign_cc%3Adefs.bzl%22%2C+%22ninja%22%29&type=code https://github.com/search?q=load%28%22%40rules_foreign_cc%2F...
- dsissitka 3y agoYou might like grep.app. It looks like it filtered out all of the noise in this case: https://grep.app/search?q=load%28%22%40rules_foreign_cc//foreign_cc%3Adefs.bzl%22%2C%20%22ninja%22%29 https://grep.app/search?q=load%28%22%40rules_foreign_cc//for...
- 100k 3y agoI work on this, and I agree we should do more to improve ranking. Exact duplicates are supressed, but often forks have different versions of some files, so they come up in the results. If you don't want to see forks, you can exclude them. Here's your same search, but converted to a regex and not including forks. I only get 3 results. https://github.com/search?q=%2Fload%5C%28%22%40rules_foreign_cc%5C%2F%5C%2Fforeign_cc%3Adefs.bzl%22%2C+%22ninja%22%5C%29%2F+NOT+is%3Afork&type=code https://github.com/search?q=%2Fload%5C%28%22%40rules_foreign...
- inferiorhuman 3y agoAre you at all embarrassed at all by how buggy and intentionally unusable Github has become?
- frankjr 3y agoNot including forks should be the default IMO. There can be a button in the Advanced section of the sidebar to include them.
- planede 3y agoYeah, Debian code search often works better for this purpose.
- bomewish 3y agoTotally agree both on the intended use case (see some project where some library is being used and how) and result — most often finding bupkis.