| 1 |
# This is a Namazu configuration file for namazu or namazu.cgi. |
| 2 |
# |
| 3 |
# Originally, this file is named 'namazurc-sample'. so you should |
| 4 |
# copy this to 'namazurc' to make the file effective. |
| 5 |
# |
| 6 |
# Each item is must be separated by one or more SPACE or TAB characters. |
| 7 |
# You can use a double-quoted string for represanting a string which |
| 8 |
# contains SPACE or TAB characters like "foo bar baz". |
| 9 |
|
| 10 |
|
| 11 |
## |
| 12 |
## Index: Specify the default directory. |
| 13 |
## |
| 14 |
Index %INDEX% |
| 15 |
|
| 16 |
|
| 17 |
## |
| 18 |
## Template: Set the template directory containing |
| 19 |
## NMZ.{head,foot,body,tips,result} files. |
| 20 |
## |
| 21 |
#Template /usr/local/var/namazu/index |
| 22 |
|
| 23 |
|
| 24 |
## |
| 25 |
## Replace: Replace TARGET with REPLACEMENT in URIs in search |
| 26 |
## results. |
| 27 |
## |
| 28 |
## TARGET is specified by Ruby's perl-like regular expressions. |
| 29 |
## You can caputure sub-strings in TARGET by surrounding them |
| 30 |
## with `(' and `)'and use them later as backreferences by |
| 31 |
## \1, \2, \3,... \9. |
| 32 |
## |
| 33 |
## To use meta characters literally such as `*', `+', `?', `|', |
| 34 |
## `[', `]', `{', `}', `(', `)', escape them with `\'. |
| 35 |
## |
| 36 |
## e.g., |
| 37 |
## |
| 38 |
## Replace /home/foo/public_html/ http://www.foobar.jp/~foo/ |
| 39 |
## Replace /home/(.*)/public_html/ http://www.foobar.jp/\1/ |
| 40 |
## Replace /C\|/foo/ http://www.foobar.jp/ |
| 41 |
## |
| 42 |
## If you do not want to do the processing on command line use, |
| 43 |
## run namazu with -U option. |
| 44 |
## |
| 45 |
## You can specify more than one Replace rules but the only |
| 46 |
## first-matched rule are applied. |
| 47 |
## |
| 48 |
#Replace /home/foo/public_html/ http://www.foo.bar.jp/~foo/ |
| 49 |
|
| 50 |
|
| 51 |
## |
| 52 |
## Logging: Set OFF to turn off keyword logging to NMZ.slog. |
| 53 |
## Default is ON. |
| 54 |
## |
| 55 |
Logging on |
| 56 |
|
| 57 |
|
| 58 |
## |
| 59 |
## Lang: Set the locale code such as `ja_JP.eucJP', `ja_JP.SJIS', |
| 60 |
## `de', etc. This directive works only if the environment |
| 61 |
## variable LANG is not set because the directive is mainly |
| 62 |
## intended for CGI use. On the shell, You can set |
| 63 |
## environemtnt variable LANG instead of using the directive. |
| 64 |
## |
| 65 |
## If you set `de' to it, namazu.cgi use |
| 66 |
## NMZ.(head|foot|body|tips|results).de for displaying results |
| 67 |
## and use a proper message catalog for `de'. |
| 68 |
## |
| 69 |
Lang ja |
| 70 |
# for Debian woody |
| 71 |
#Lang ja_JP.eucJP |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
## |
| 76 |
## Scoring: Set the scoring method "tfidf" or "simple". |
| 77 |
## |
| 78 |
#Scoring tfidf |
| 79 |
|
| 80 |
|
| 81 |
## |
| 82 |
## EmphasisTags: Set the pair of html elements which is used in |
| 83 |
## keyword emphasizing for search results. |
| 84 |
## |
| 85 |
#EmphasisTags "<strong class=\"keyword\">" "</strong>" |
| 86 |
|
| 87 |
## |
| 88 |
## MaxHit: Set the maximum number of documents which can be |
| 89 |
## handled in query operation. If documents matching a |
| 90 |
## query exceed the value, they will be ignored. |
| 91 |
## |
| 92 |
#MaxHit 10000 |
| 93 |
|
| 94 |
## |
| 95 |
## MaxMatch: Set the maximum number of words which can be |
| 96 |
## handled in regex/prefix/inside/suffix query. If documents |
| 97 |
## matching a query exceed the value, they will be ignored. |
| 98 |
## |
| 99 |
#MaxMatch 1000 |
| 100 |
|
| 101 |
## |
| 102 |
## ContentType: Set "Content-Type" header output. If you want to |
| 103 |
## use non-HTML template files, set it suitably. |
| 104 |
#ContentType "text/x-hdml" |
| 105 |
# this is not so good, but... |
| 106 |
ContentType "text/html; charset=EUC-JP" |
| 107 |
|
| 108 |
|