Bring back sort:indexed
for code searches
#52932
-
Select Topic AreaProduct Feedback BodyOn March 10th you informed public that you'll deprecate the I think this was done quite quickly - only 30 days after the deprecation notice. Are there any plans to bring this feature back/to the new search API? I think this is a very commonly used feature, which helps users to see most recent code changes containing some search term in a repo. |
Beta Was this translation helpful? Give feedback.
Replies: 134 comments 75 replies
-
Yes, please bring this back. It makes it a total hassle to search for only recently updated repositories meaning both the client and server side are having to do excessive amounts of work and data transfer when the client code doesn't even want that. Example: 10000 results, one only cares about the last 100 recently updated. With prior model this was easy. With current it forces the client to fetch the entire result set and then post-filter. Total regression. |
Beta Was this translation helpful? Give feedback.
-
This is one of the worst decisions github made... I am using this feature extensively. If they drop it, code search is just garbage search. |
Beta Was this translation helpful? Give feedback.
-
Yes, made CS almost unusable 😢 |
Beta Was this translation helpful? Give feedback.
-
yeah i need to find shadowsocks config |
Beta Was this translation helpful? Give feedback.
-
Not that they removed a useful feature - the new version outputs no data... besides that... I dont want to see 10 year old code as example for anything. this sucks massively... but I dont think we will see this feature again, Microsoft doesnt care. |
Beta Was this translation helpful? Give feedback.
-
Besides not being able to sort by recency, now if you want to see when the file has been updated, you have to hover the filename. |
Beta Was this translation helpful? Give feedback.
-
Everyone, thanks for the feedback. We've definitely heard that sorting by date is a feature many people miss from the old code search. Unfortunately due to the way our new code search index works (which you can read about in some detail in this blog post), implementing sorting by recency is complex. We are thinking about way to make this work in the new code search system, but don't have a date for when it will be possible. I'll update again here once we have a more concrete plan. |
Beta Was this translation helpful? Give feedback.
-
Please allow us to revert to the old search in the meantime +1 |
Beta Was this translation helpful? Give feedback.
-
please enable old search . |
Beta Was this translation helpful? Give feedback.
-
Please turn on the old search feature again |
Beta Was this translation helpful? Give feedback.
-
Please make a way for us to use old functionality of search. As my works is immensely effected by that. It's an humble request 🙏 |
Beta Was this translation helpful? Give feedback.
-
Please give us the option to use the old version, this is disturbing a lot, the user can have the option of which of the two models to use. |
Beta Was this translation helpful? Give feedback.
-
+1, you cant do anything without searching... |
Beta Was this translation helpful? Give feedback.
-
At least make it filterable by date |
Beta Was this translation helpful? Give feedback.
-
Please bring the old search back. Why force everybody to use something that doesn't work and it is a UI disaster :( |
Beta Was this translation helpful? Give feedback.
-
It is almost as if people who do NOT program and making these decisions. 🤦♂️ https://images.app.goo.gl/ZBprA5JiMh8Pofd3A |
Beta Was this translation helpful? Give feedback.
-
The code search results now are much wores than that in about 2 years ago. |
Beta Was this translation helpful? Give feedback.
-
I hate that I have to dig outdated code in search results. This is a real pain Microsoft inflicted on developers.😔 |
Beta Was this translation helpful? Give feedback.
-
Not that my comment is going to change anything, but please for the love of God, implement sorting by recency. |
Beta Was this translation helpful? Give feedback.
-
I get some repos are created on github and maybe automatically indexing them causes problems for authors where they thought that the repo would be hidden because it wasn't linked to or somehow they think repo is a secret or they don't enable privacy. then results bubble that can be sensitive. UPDATE |
Beta Was this translation helpful? Give feedback.
-
Any updates when this will be fixed? |
Beta Was this translation helpful? Give feedback.
-
well, a year passed, still keep mess/garbage |
Beta Was this translation helpful? Give feedback.
-
My reading is - until we give @LiteBrite82 a valid use case - he can't help us? Do you need a bigger use case than say - searching for code that's new? |
Beta Was this translation helpful? Give feedback.
-
Is it still the case that "GitHub Code Search will only index repositories that have had recent activity within the last year"? |
Beta Was this translation helpful? Give feedback.
-
It's been over a year since this has been posted, are there any updates as to why we can't use sort:indexed?
@look posted that it's been heard loud and clear, and that was in July of 2023. If anything, I assume it's been heard louder and clearer in the year since. For my use cases, I often look at APIs that change rapidly. It's therefore incredibly helpful to be able to sort by date, as often different repos are using different APIs. It's useless to look at a repo that's 2 years or older, and often the new code search is giving me results from 5 years ago. |
Beta Was this translation helpful? Give feedback.
-
Until sort by date is restored, it'd be great to at least show the date in the results (I would hope that this is not also a heavy technical burden). Right now, I have no way of knowing whether the code is 5 weeks, 5 months, or 5 years old until I click on a result. |
Beta Was this translation helpful? Give feedback.
-
... or somebody build a browser plugin to go off and load each individual results
But seriously - is there a timeline to completely replace search architecture with an LLM across all code ? |
Beta Was this translation helpful? Give feedback.
-
bring it back.. |
Beta Was this translation helpful? Give feedback.
-
bring it back +1!!! |
Beta Was this translation helpful? Give feedback.
-
why is this even removed in the first place??? bring it back ! |
Beta Was this translation helpful? Give feedback.
Thanks for this context @benjsilverstein. It sounds like you have a lot of duplicated code and therefore finding the most recent examples is very useful to you. It's really helpful to hear examples like this to prioritize work on sorting.
We have definitely heard loud and clear that people want to be able to sort by recency. As I've mentioned in previous responses, the way it was implemented previously does not work for our new code search, because we rebuild the index frequently and the initial build would give everything the same date. We would like to implement this using the time the file was committed, but that is not easy to access in Git due to how data is stored in a repository.