Go to file
Phyks eaaa64bdea Initial commit
Python script generates the index correctly, but not optimized at all...
2013-12-26 17:16:12 +01:00
samples Initial commit 2013-12-26 17:16:12 +01:00
README.md Initial commit 2013-12-26 17:16:12 +01:00
generate_index.py Initial commit 2013-12-26 17:16:12 +01:00

README.md

BloomJS

A javascript search engine.

Basic idea

I have a static weblog, generated thanks to [Blogit](https://github.com/phyks/blogit, caution this code is ugly) and, as I only want to have html files on my server, I needed to find a way to enable users to search my blog.

An index is generated by a Python script, upon generation of the pages, and is dynamically downloaded by the client when he wants to search for contents.

Files

  • generate_index.py : Python script to generate the index (runs only at page generation) in a nice format for Javascript
  • samples/ : samples for testing purpose (taken from my blog articles)

Notes

I got the idea while reading this page found on Sebsauvage's shaarli. I searched a bit for code doing what I wanted and found these ones :

But I wasn't fully satisfied by the first one, and I found the second one too heavy and complicated for my purpose, so I ended up coding this.