Namazu Tips

This is a place to store tips on using/configuring the namazu file system search engine (on Linux).

To get namazu to index hidden files:
1. Copy the sample config file somewhere.
2. Uncomment & change the line:
$DENY_FILE = “.*\\.(gif|png|jpg|jpeg)|.*\\.tar\\.gz|core|.*\\.bak|.*~|\\..*|\x23.*”;
… to:
$DENY_FILE = “.*\\.(gif|png|jpg|jpeg)|.*\\.tar\\.gz|core|.*\\.bak|.*~|\x23.*”;
… i.e., remove the |\\..* part.
3. When you run mknmz, make sure to tell it to use your new config file. I.e., ... -f /path/to/namazu.conf

ALSO…
remember to include that semicolon after your $DENY_FILE or $ALLOW_FILE pattern declarations. Without it, shit won’t work properly.

ALSO…
when programatically calling mknmz to create the index or namazu to perform a search, be sure to use /full/path/from/root as well as enclosing your query in “quotes”.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s