namazuコマンドで、configuration項目の実際の値を表示する-Cオプション
(--show-config)についてです。

namazu-2.0.20のnamazuは、可能な全てのconfiguration項目を表示せず、
一部を抑制しています。全て表示する方がよりよい気がします。
以下がpatchです。

--- namazu-2.0.20.orig/src/rcfile.c     2009-02-16 09:43:43.000000000 -0800
+++ namazu-2.0.20/src/rcfile.c  2011-04-22 17:40:13.000000000 -0700
@@ -895,14 +895,19 @@
 Lang:         %s\n\
 Scoring:      %s\n\
 Template:     %s\n\
+ContentType:  %s\n\
 MaxHit:       %d\n\
 MaxMatch:     %d\n\
 EmphasisTags: %s\t%s\n\
+Suicide_Time: %d\n\
+Regex_Search: %s\n\
 "), nmz_get_defaultidx(), nmz_is_loggingmode() ? "on" : "off",
            nmz_get_lang(), nmz_is_tfidfmode() ? "tfidf" : "simple",
-          get_templatedir(), 
+          get_templatedir(), get_contenttype(), 
           nmz_get_maxhit(), nmz_get_maxmatch(),
-          get_emphasis_tag_start(), get_emphasis_tag_end()
+          get_emphasis_tag_start(), get_emphasis_tag_end(),
+          suicide_time,
+          nmz_is_regex_searchmode() ? "on" : "off"
           );
 
     /* Show aliases. */

-- 
渡邊克宏
_______________________________________________
Namazu-users-ja mailing list
Namazu-users-ja@namazu.org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-ja

メールによる返信