gpt4 book ai didi

indexing - Reindexing Zebra 因为在 KOHA Integrated Library System 中的 opac 和 intranet 搜索都没有找到结果

转载 作者:行者123 更新时间:2023-12-04 13:49:09 26 4
gpt4 key购买 nike

我在 Debian 服务器上有一个新安装的 Koha 3.16。我已经将 MARC 记录导入到目录中,但是当我在 Opac 上搜索时,没有找到任何结果。

我阅读了这个链接:My Zebra Indexing won’t work! How do I fix it? (AKA: I search for stuff and nothing comes up! Help!)

我已尝试遵循此链接中所说的内容。但不幸的是,我坚持了第三步。

export PERL5LIB=/usr/share/koha/lib
export KOHA_CONF=/usr/share/koha/koha-conf.xml
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r -v -x

我运行了这个命令,但仍然没有成功。我尝试使用以下命令重建 zebra:

sudo koha-rebuild-zebra -f -v  mylibrary

结果显示:

Zebra configuration information 
================================
Zebra biblio directory = /var/lib/koha/mylibrary/biblios
Zebra authorities directory = /var/lib/koha/mylibrary/authorities
Koha directory = /usr/share/koha/intranet/cgi-bin
Lockfile = /var/lock/koha/mylibrary/rebuild/rebuild..LCK
BIBLIONUMBER in : 999$c
BIBLIOITEMNUMBER in : 999$d
================================
skipping authorities
====================
exporting biblio
====================
Records exported: 7922
====================
REINDEXING zebra
====================
18:04:12-13/11 zebraidx(8862) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/norm..LCK [No such file or directory]
18:04:12-13/11 zebraidx(8862) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/shadow..LCK [No such file or directory]
18:04:12-13/11 zebraidx(8862) [fatal] Could not select database biblios errCode=109
18:04:12-13/11 zebraidx(8863) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/norm..LCK [No such file or directory]
18:04:12-13/11 zebraidx(8863) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/shadow..LCK [No such file or directory]
18:04:12-13/11 zebraidx(8863) [fatal] Could not select database biblios errCode=109
====================
CLEANING
====================
Zebra configuration information
================================
Zebra biblio directory = /var/lib/koha/mylibrary/biblios
Zebra authorities directory = /var/lib/koha/mylibrary/authorities
Koha directory = /usr/share/koha/intranet/cgi-bin
Lockfile = /var/lock/koha/mylibrary/rebuild/rebuild..LCK
BIBLIONUMBER in : 999$c
BIBLIOITEMNUMBER in : 999$d
================================
====================
exporting authority
====================

Records exported: 0
====================
REINDEXING zebra
====================
skipping biblios
====================
CLEANING
====================

重新索引 Zebra 有什么问题?我将如何修复它?我发现了一个和我一样的问题,但老实说我不知道​​如何应用补丁。这是链接:

zebraidx errCode=109

请修复它。我真的必须让它工作。

最佳答案

在 Centos 中安装 koha 时出现同样的情况。尝试:

Koha-rebuild-zebra -f -v -b mylibrary

您可以使用这些行重新启动搜索表。

sudo zebraidx -c /etc/koha/sites/library/zebra-biblios.cfg drop biblios
sudo zebraidx -c /etc/koha/sites/library/zebra-biblios.cfg commit
koha-rebuild-zebra -b -r -v mylibrary
  • 最后:尝试更改首选项部分中的 SearchEngine 参数。 Zebra 到 Solr。

其他参数(source):

  • -f, --full 重新索引整个集合。即使 USE_INDEXER_DAEMON=yes 也会运行。
  • -a, --authorities 只为规范记录运行索引进程。
  • -b, --biblios 只为书目记录运行索引进程。
  • -q, --quiet 有时对脚本/cronjobs 稍微安静一些。
  • -v, --verbose 冗长。对于调试索引问题很有用。

关于indexing - Reindexing Zebra 因为在 KOHA Integrated Library System 中的 opac 和 intranet 搜索都没有找到结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26925152/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com