The Emergent Properties of Meat
Blog
Software
Hardware
About me
Photography
 Logos
Bigger projects: emc2 & AXIS
Friends' pages:
Alex
Bill
Chris
Jon
Michael
Email me: jepler@unpy.net

« Plugging an old project | Newest entries | Another constant-current circuit »

Here's some code to make the search form on your aether blog use the powerful full-text indexer swish-e

NOTE: this code is now out-of-date compared to the code I'm actually using.

Drop the code in aether_search_swish.py into _code.py, and put swish_config in the same directory, renamed "_swish_config". Run a periodic cron job to regenerate the database, along the lines of

    */20 * * * * cd /var/www/html/aether/index.cgi-data; swish-e -c _swish_config -i .

The _swish_config file is supposed to exclude "secret" files like _code.py from the search.

Files currently attached to this page:

aether_search_swish.py2.0kB
swish_config120 bytes



Entry first conceived on 18 March 2005, 17:05 UTC, last modified on 1 October 2005, 16:53 UTC



Powered by the Emergent Properties of Meat. Copyright © 2004-2008 Jeff Epler
[æ]