memo.xight.org

/ / memo.xight.org

2004-06-22

Namazu Tips

- 複数のディレクトリのインデックスを一つにする方法
  例: /example/doc1と/example/doc2をインデックス対象にする.

  - 1. インデックス対象ファイルを並べて指定する

$ mknmz -F /example/doc1 /example/doc2


  - 2. -Yオプションを使用する
    あとからインデックス対象ディレクトリを追加できる.

$ mknmz /example/doc1
$ mknmz -Y /example/doc2


  - 3. インデックスリストを指定する
    indexlistはディレクトリを行ごとに列挙する.

$ cat indexlist
/example/doc1
/example/doc2

$ mknmz -F indexlist

    インデックス対象を後から確認可能であるという利点がある.

- 特定ディレクトリをインデックスから除外する方法
  例: /example/doc をインデックス対象にし,
      /example/doc/exclude1 と/example/doc/exclude2 をインデックスから除外する
  - 1. --excludeオプションを使用する
    mknmz '--exclude=除外ディレクトリを正規表現' インデックス対象

$ mknmz '--exclude=/example/doc/exclude1/.*|/example/doc/exclude2/.*' /home/html/


  - 2. mknmzrcで指定する
    デフォルトでは $EXCLUDE_PATH = undef;

$EXCLUDE_PATH = "/example/doc/exclude1/.*|/example/doc/exclude2/.*" ;


- ディレクトリによってAnchorタグを変更する方法
  例: /example/www/ を http://www.example.com/
      /example/doc1/ を http://doc1.example.com/
      /example/doc2/ を http://doc2.example.com/

  - namazurcで指定する

Replace /example/www/ http://www.example.com/
Replace /example/doc1/ http://doc1.example.com/
Replace /example/doc2/ http://doc2.example.com/


- Reference
  マニュアルに書いていないNAMAZU
  http://www.amays.com/~mizusawa/namazu_kaisetu/

カテゴリ: [Namazu]
2004-06 /

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-12-02 10:52
Copyright © 2005 xight.org All Rights Reserved.