Code search is hard
blog.val.town
Code search is hard
1–10 of 164 posts
Re: Code search is hard
#2Re: Code search is hard
#3Re: Code search is hard
#4https://github.blog/2023-02-06-the-technology-behind-githubs...
Re: Code search is hard
#5Re: Code search is hard
#6By the way, there's a demo running here for the linux kernel, you can try it out and see what you think: https://livegrep.com/search/linux
EDIT: by the way, "code search" is deeply underspecified. Before trying to compare all these different options, you really would benefit from writing down all the different types of queries you think your users will want to ask, including why they want to run that query and what results they'd expect. Building/tuning search is almost as difficult a product problem as it is an engineering problem.
Re: Code search is hard
#7I remember to appreciate it even more every time I use Github's search. Not that it's bad, it's just inherently so much harder to build a generalized code search platform.
Re: Code search is hard
#8Be careful with trigram indexes. At least in the postgres 10 era they caused severe index bloat for frequently updated tables.
Re: Code search is hard
#9It has columns for the owner, object name, LINE[NUMBER] and TEXT[VARCHAR2(4000)] columns and you can use LIKE or regexp_like() on any of the retained source code.
I wonder if EnterpriseDB implements these inside of Postgres, and/or if they are otherwise available as an extension.
Since most of SQL/PSM came from Oracle anyway, these would be an obvious desired feature.