102 points · by StavrosK · 12y ago · 22 comments
For static blogs, I think this could be used as a first level of search, instead of directly going to Google first.
[0] http://posativ.org/acrylamid/static-search.html
[1] http://stackoverflow.com/questions/605888/whats-the-search-e...
A bit of googling shows me this already exists and is called a bloofi tree.
Edit: nm, it appeared when I searched for bloom trees instead of bloofi
<?php exec("grep $terms *html", $results);Probably CGI would be better, mind you, keep everything static except what is obviously not.
Besides, the hosts I want to deploy on don't have PHP (S3, stock nginx, Github pages).
Plus, you can host it on different platforms such as freenet, gnunet, and have the simplest backup ever (`cp` is enough for having a functioning version on any OS of any kind).
I once wrote a python library for wrapping static content into a sqlite database for full text searching, for roughly the same use-case (static content, but I would like a search system). I just threw it online, if anyone is interested.