- include langmap and stopwords in search template too
[mnogosearch-rpm] / mnogosearch-distconfig.patch
CommitLineData
b5bd282f 1diff -r -u mnogosearch-3.3.11.orig/etc/indexer.conf-dist mnogosearch-3.3.11/etc/indexer.conf-dist
fed5300c
GE
2--- mnogosearch-3.3.11.orig/etc/indexer.conf-dist 2011-01-31 14:02:07.000000000 +0100
3+++ mnogosearch-3.3.11/etc/indexer.conf-dist 2011-01-31 14:02:20.000000000 +0100
b5bd282f
GE
4@@ -1,4 +1,4 @@
5-#!/usr/local/mnogosearch/sbin/indexer -d
6+#!/usr/bin/indexer -d
7
8 ###########################################################################
9 # This is a sample indexer config file.
10@@ -49,7 +49,7 @@
11 # then PostgreSQL will not work via TCP, but will use Unix socket.
12 #
13
14-DBAddr mysql://root@localhost/test/?dbmode=blob
15+DBAddr sqlite3://localhost/var/lib/mnogosearch/default.db/?dbmode=blob
16
17
18
19@@ -139,7 +139,7 @@
20 #LocalCharset Shift-JIS
21
22 # Full UNICODE
23-#LocalCharset UTF-8
24+LocalCharset UTF-8
25
26 #######################################################################
27 #ForceIISCharset1251 yes/no
28@@ -169,7 +169,7 @@
29 #
30 #StopwordFile stopwords/en.sl
31
32-#Include stopwords.conf
33+Include stopwords.conf
34
35
36 ###########################################################################
37@@ -180,7 +180,7 @@
38 #
39 #LangMapFile langmap/en.ascii.lm
40
41-#Include langmap.conf
42+Include langmap.conf
43
44
45 #######################################################################
46@@ -310,11 +310,11 @@
47
48 # Disallow document extensions that are not understood by default.
49 # Comment these lines if you have corresponding external parsers.
50-Disallow *.rtf
51-Disallow *.doc
52-Disallow *.xls
53-Disallow *.ppt
54-Disallow *.pdf
55+#Disallow *.rtf
56+#Disallow *.doc
57+#Disallow *.xls
58+#Disallow *.ppt
59+#Disallow *.pdf
60
61 # Exclude some known extensions using fast "String" match:
62 Disallow *.b *.sh *.md5 *.rpm
63@@ -531,16 +531,16 @@
64 # from_mime to_mime[charset] [command line [$1]]
65 #
66 #Mime application/msword "text/plain; charset=utf-8" "catdoc -a -dutf-8 $1"
67-#Mime application/msword "text/html; charset=utf-8" "wvHtml --charset=utf-8 $1 -"
68+Mime application/msword "text/html; charset=utf-8" "wvHtml --charset=utf-8 $1 -"
69 #Mime application/x-troff-man text/plain "deroff"
70 #Mime text/x-postscript text/plain "ps2ascii"
71-#Mime application/pdf text/plain "pdftotext $1 -"
72+Mime application/pdf "text/plain; charset=utf-8" "pdftotext $1 -"
73 #Mime application/vnd.ms-excel text/plain "xls2csv $1"
74-#Mime application/vnd.ms-excel text/html "xlhtml $1"
75+Mime application/vnd.ms-excel "text/html; charset=utf-8" "xlhtml $1"
76 #Mime "text/rtf*" text/html "rthc --use-stdout $1 2>/dev/null"
77 #Mime "text/rtf*" text/xml "rtfx -w $1 2>/dev/null"
78-#Mime "text/rtf*" text/html "unrtf --html $1"
79-#Mime application/vnd.ms-powerpoint "text/html; charset=utf-8" "pptohtml $1"
80+Mime "text/rtf*" "text/html; charset=utf-8" "unrtf --html $1"
81+Mime application/vnd.ms-powerpoint "text/html; charset=utf-8" "ppthtml $1"
82 #Mime application/vnd.ms-powerpoint text/html "ppthtml $1"
83
84
85@@ -975,7 +975,7 @@
86 # Default value is "path".
87 #
88 # To index whole server "localhost":
89-#Server http://localhost/
90+Server http://localhost/
91 #
92 # You can also specify some path to index subdirectory only:
93 #Server http://localhost/subdir/
94diff -r -u mnogosearch-3.3.11.orig/etc/search.htm-dist mnogosearch-3.3.11/etc/search.htm-dist
95--- mnogosearch-3.3.11.orig/etc/search.htm-dist 2011-01-27 16:10:07.000000000 +0100
fed5300c 96+++ mnogosearch-3.3.11/etc/search.htm-dist 2011-01-31 14:04:20.000000000 +0100
b5bd282f
GE
97@@ -13,7 +13,7 @@
98 <!--variables
99 # Database parameters
100 # Format: <DBType>:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/[?dbmode=mode]
101-DBAddr mysql://root@localhost/test/?dbmode=blob
102+DBAddr sqlite3://localhost/var/lib/mnogosearch/default.db/?dbmode=blob
103
104 # Uncomment this line to enable search result cache
105 #Cache yes
106@@ -25,8 +25,8 @@
107 # Default charset is iso-8859-1 (latin1)
108 # which is suitable for the most Western European languages
109
110-LocalCharset iso-8859-1
111-BrowserCharset iso-8859-1
112+LocalCharset utf-8
113+BrowserCharset utf-8
114
115 # Load stopwords file. File name is either absolute
116 # or relative to /etc directory of mnoGoSearch installation.
fed5300c
GE
117@@ -35,6 +35,10 @@
118 #StopwordFile stopwords/ru.sl
119 #
120
121+Include stopwords.conf
122+
123+Include langmap.conf
124+
125 #
126 # Minimum and maximum word lengths
127 #