Show HN: I created a search engine to quickly find things in my source code

  • Posted 1 hour ago by mrmcsoftware
  • 1 points
https://github.com/mrmcsoftware/SearchEngineSuite
I like to reuse code I've already written. But with so many projects over the many years, it's sometimes hard to remember which project I did a given thing in or even what the parameters of a rarely used Win32 API function are. I needed something that could easily find what I needed without the slowness of a recursive grep (especially since my projects can span many different locations in the filesystems and even many different computers/OSes) or the increasing difficulty in getting what you want from search engines on the internet.

This search engine implements TF-IDF and BM25 algorithms. It has both C TUI programs and a web interface via a node.js server which accesses the daemons. It's written for Windows and Linux. The user can use whatever flow they want - one-shot query vs. daemon (client/server), commandline tools vs web interface, secure vs. non-secure, etc. This project also serves as (IMHO) a rather good example of all sorts of things such as socket programming, OpenSSL programming, node.js programming, JSON processing, etc.

0 comments