X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=global.conf;h=485fee717330fb381f73e1717fd48de80ef81839;hb=6a28c14b9cb0b02e89c9dc20dba507e1fa55ce0a;hp=cd7f4fa9c2e34a51f9a259ee17be3d9348ee6968;hpb=0d819213b69e79393f53ed288f79aa586dc22679;p=webpac diff --git a/global.conf b/global.conf index cd7f4fa..485fee7 100644 --- a/global.conf +++ b/global.conf @@ -2,19 +2,32 @@ [global] # define database to use for indexes - dbi_dbd=Pg - dbi_dsn=dbname=webpac-dev +# dbi_dbd=Pg +# dbi_dsn=dbname=webpac-dev + + dbi_dbd=SQLite + dbi_dsn=dbname=/data/webpac/index.sqlite + dbi_user=dpavlin - dbi_passwd=xx + dbi_passwd="" # display progress bar indicator (default is no) - #show_progress=1 + show_progress=1 + + # Filter characters before feeding them to swish. If you don't use + # this file, implementation will fall-back to passing through + # original charset, and if you have anything other than plain + # 7-bit ascii in your data, your words will end-up splitted in + # index on 8-bit characters and you won't be able to find them! + my_unac_filter = /data/webpac/my_unac_string.pm [webpac] # path to template html files template_html = /data/webpac/template_html # charset encoding for template file *and* users (default iso-8859-1) charset = ISO-8859-2 + # locale to use (for sorting, uc/lc) (default hr_HR) + locale = hr_HR # path to swish binary (default /usr/bin/swish-e) swish = /usr/bin/swish-e # path to index file @@ -23,4 +36,13 @@ max_hits = 0 # number of results on each pager page (default 10) on_page = 30 + # Minimum number of characters which will be will suplemented by + # wildcard * to find all words which begin with those letters, + # This should be at least 1, so that queries with non-alpha characters + # like "&" would work. However, larger values also make sense to produce + # more relevant hits on words like "to", "at" etc. + min_wildcard = 2 + # master template which will be used to enable global design changes + # (it will replace ##webpac## in this template with output of webpac) + template = /data/webpac/public_html/template.html