星期四, 7月 22, 2004

MnoGoSearch 網站內容全文檢索

MnoGoSearch 網站內容全文檢索
網頁:
http://www.mnogosearch.org/

MnoGoSearch 3.2 版以後已支援雙位元的字碼 , 如繁體中文, 簡體中文, 日文等等

安裝方式:

請先至 http://www.mnogosearch.org/下載軟體

將其解壓縮後, 執行 ./configure --help 可以查看其相關設定

例如要使用postgresql的資料庫, 並加入雙位元字的支援, 則下

./configure --with-extra-charsets=all --with-pgsql

執行make , 如果沒有問題, 則執行 make install

預設程式會安裝在 /usr/local/mnogosearch 中

將 /usr/local/mnogosearch/bin/search.cgi 覆製到 Apache 的cgi-bin目錄中

建立一個資料庫, createdb mnoGoSearch

初始化此資料庫 /usr/local/mnogosearch/sbin/indexer -Ecreate

cd /usr/local/mnogosearch/etc/

cp indexer.conf-dist indexer.conf , 然後修改indexer.conf

重點是修改

#DBAddr mysql://foo:bar@localhost/mnogosearch/?dbmode=single



LocalCharset 使用UTF-8 , 及加上

LoadChineseList BIG5 /usr/local/mnogosearch/etc/TraditionalChinese.freq

最後修改

Server http://your.server.name/

cp langmap.conf-dist langmap.conf; cp search.htm-dist search.htm; cp stopwords.conf-dist stopwords.conf

修改search.htm

重點是修改

#DBAddr mysql://foo:bar@localhost/udm/?dbmode=single

DBAddr pgsql://yourname:yourpassword@localhost/mnoGoSearch/?dbmode=single

#LocalCharset iso-8859-1

LocalCharset utf-8

#BrowserCharset iso-8859-1

BrowserCharset big5

執行 /usr/local/mnogosearch/sbin/indexer -a

測試 http://your.server.name/cgi-bin/search.cgi

沒有留言: