more programming fun
Mar. 2nd, 2013 10:38 pmOne thing I regularly want is a search tool for *my* needs. The OSX one (spotlight) is a bit slow and often doesn't do what I want. I haven't found one I'm happy with for Linux.
So I sat down this evening and hacked together some Common Lisp/SQLite to start this. At present it's a bit mindless but I can query for particular phrases. I need to add in stemming rules.
It's a good hack project. Not too complicated, but interesting enough I don't feel that I'm wasting my time. It's also extremely well-defined IMO.
My goal is to provide a separate system that'll be like `locate`, but will be "search 'token'". Depending on the SQLite syntax is, I might be able to swing regexes or LIKE queries as well. Otherwise I'll just have to implement some peculiar stemming rules in order to handle tokens of interest.
TODO:
- Add in directory walking and insertnig
- Factor search code out into the client tool.
So I sat down this evening and hacked together some Common Lisp/SQLite to start this. At present it's a bit mindless but I can query for particular phrases. I need to add in stemming rules.
It's a good hack project. Not too complicated, but interesting enough I don't feel that I'm wasting my time. It's also extremely well-defined IMO.
My goal is to provide a separate system that'll be like `locate`, but will be "search 'token'". Depending on the SQLite syntax is, I might be able to swing regexes or LIKE queries as well. Otherwise I'll just have to implement some peculiar stemming rules in order to handle tokens of interest.
TODO:
- Add in directory walking and insertnig
- Factor search code out into the client tool.