- OPAC搜尋
- 重新啟動搜尋引擎
倘若明知有資料,卻搜尋無所得,顯然索引不成功。可以從命令列重啟Zebra搜尋引擎
# koha-restart-zebra [instance1 instance2 etc]
# koha-rebuild-zebra -f -v <instance>
Zebra does not appear to have been running for instance [library].
Starting Zebra server for [library]
(當初:新增 Koha 實例 (instance) :# koha-create --create-db [library]) - 搜尋結果
(1) 英文書目紀錄:比對、排序、過濾正常
(2) 中文書目紀錄:比對正常,排序、過濾出問題,連同其他所有書目紀錄一起出現,相符條件者未顯示於搜尋結果最上方
二、elastic(變更搜尋引擎)
# wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.deb
# dpkg -i elasticsearch-5.2.0.deb
# systemctl start elasticsearch
# systemctl enable elasticsearch
編修/etc/apt/sources.list
# nano /etc/apt/sources.list
GNU nano 2.7.4 檔案: /etc/apt/sources.list 已更動
# jessie-backports
deb http://ftp.debian.org/debian/ jessie-backports main
# koha unstable
deb http://debian.koha-community.org/koha unstable main
# koha nightly unstable
deb https://apt.abunchofthings.net/koha-nightly unstable main#
# deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 NETINST 20170722$
#deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 NETINST 20170722-$
deb http://ftp.tw.debian.org/debian/ stretch main
deb-src http://ftp.tw.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://ftp.tw.debian.org/debian/ stretch-updates main
[ 已寫入 20 列 ]
^G 求助 ^O Write Out ^W 搜尋 ^K 剪下文字 ^J 對齊 ^C 游標位置
^X 離開 ^R 讀檔 ^\ 置換 ^U Uncut Text^T 拼字檢查 ^_ 跳列
安裝套件
# apt-get install apt-transport-https
# apt-get update
# apt-get install -t jessie-backports openjdk-8-jre-headless
安裝Java
# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1069 manual mode
選擇java8
安裝套件
# apt-get install koha-elasticsearch
Install the analysis-icu plugin
# /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
# service elasticsearch stop
# service elasticsearch start
編修/etc/koha/sites/linslib/koha-conf.xml
linslib => instance名稱
# cd /etc/koha/sites/linslib
# vi koha-conf.xml
<elasticsearch>
<server>localhost:9200</server> <!-- may be repeated to include all servers on your cluster -->
<index_name>koha_robin</index_name> <!-- should be unique amongst all the indices on your cluster. _biblios and _authorities will be appended. -->
</elasticsearch>
下載套件
# wget -qO - localhost:9200
{
"name" : "tJZ9Zw4",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "IG6nPGBHSAqSEjkIV-Fi1A",
"version" : {
"number" : "5.2.0",
"build_hash" : "24e05b9",
"build_date" : "2017-01-24T19:52:35.800Z",
"build_snapshot" : false,
"lucene_version" : "6.4.0"
},
"tagline" : "You Know, for Search"
}
切換
# cd /usr/share/koha/bin/search_tools
設定環境變數; linslib是原先安裝的instance
# export KOHA_CONF="/etc/koha/sites/linslib/koha-conf.xml"
# export PERL5LIB="/usr/share/koha/lib"
執行索引
# ./rebuild_elastic_search.pl -v -d
Indexing biblios
1
2
3
Koha館員介面
首頁→管理→系統偏好
SearchEngine (修改過)
使用以下的搜尋引擎: elasticsearch
Home→Administration→System preferences
SearchEngine=elasticsearch
# wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.deb
# dpkg -i elasticsearch-5.2.0.deb
# systemctl start elasticsearch
# systemctl enable elasticsearch
編修/etc/apt/sources.list
# nano /etc/apt/sources.list
GNU nano 2.7.4 檔案: /etc/apt/sources.list 已更動
# jessie-backports
deb http://ftp.debian.org/debian/ jessie-backports main
# koha unstable
deb http://debian.koha-community.org/koha unstable main
# koha nightly unstable
deb https://apt.abunchofthings.net/koha-nightly unstable main#
# deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 NETINST 20170722$
#deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 NETINST 20170722-$
deb http://ftp.tw.debian.org/debian/ stretch main
deb-src http://ftp.tw.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://ftp.tw.debian.org/debian/ stretch-updates main
[ 已寫入 20 列 ]
^G 求助 ^O Write Out ^W 搜尋 ^K 剪下文字 ^J 對齊 ^C 游標位置
^X 離開 ^R 讀檔 ^\ 置換 ^U Uncut Text^T 拼字檢查 ^_ 跳列
安裝套件
# apt-get install apt-transport-https
# apt-get update
# apt-get install -t jessie-backports openjdk-8-jre-headless
安裝Java
# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1069 manual mode
選擇java8
安裝套件
# apt-get install koha-elasticsearch
Install the analysis-icu plugin
# /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
# service elasticsearch stop
# service elasticsearch start
編修/etc/koha/sites/linslib/koha-conf.xml
linslib => instance名稱
# cd /etc/koha/sites/linslib
# vi koha-conf.xml
<elasticsearch>
<server>localhost:9200</server> <!-- may be repeated to include all servers on your cluster -->
<index_name>koha_robin</index_name> <!-- should be unique amongst all the indices on your cluster. _biblios and _authorities will be appended. -->
</elasticsearch>
下載套件
# wget -qO - localhost:9200
{
"name" : "tJZ9Zw4",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "IG6nPGBHSAqSEjkIV-Fi1A",
"version" : {
"number" : "5.2.0",
"build_hash" : "24e05b9",
"build_date" : "2017-01-24T19:52:35.800Z",
"build_snapshot" : false,
"lucene_version" : "6.4.0"
},
"tagline" : "You Know, for Search"
}
切換
# cd /usr/share/koha/bin/search_tools
設定環境變數; linslib是原先安裝的instance
# export KOHA_CONF="/etc/koha/sites/linslib/koha-conf.xml"
# export PERL5LIB="/usr/share/koha/lib"
執行索引
# ./rebuild_elastic_search.pl -v -d
Indexing biblios
1
2
3
.
.
.
Koha館員介面
首頁→管理→系統偏好
SearchEngine (修改過)
使用以下的搜尋引擎: elasticsearch
Home→Administration→System preferences
SearchEngine=elasticsearch
- MarcEdit ── Your complete free MARC editing utitility
- Installation Instructions:http://marcedit.reeset.net/marcedit-linux-installation-instructions
- download:http://marcedit.reeset.net/downloads
(1) MarcEdit 7.0.x beta
(2) MarcEdit 6.3.x
Command-line tools(只有Windows版本):
http://marcedit.reeset.net/cmarcedit-exe-using-the-command-line
註:測試版
Alpha
|
beta
|
|
版本
|
測試版(有很多bug)
|
|
時間
|
先
|
後
|
使用對象
|
公司內部
|
公司外部
|
註:不要說自己很優秀,而是我非常榮幸能夠和這麼優秀的同學一起學習
→因為同學很優秀,所以自己也很優秀
- The Linux Kernel Archives
註:rc→尚未完成
reference:
毛慶禎的授課-Koha 圖書館管理系統
https://sites.google.com/site/kohataiwan/
https://sites.google.com/site/kohataiwan/
沒有留言:
張貼留言