[Koha-bugs] [Bug 12478] Elasticsearch support for Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 1 07:33:10 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12478

--- Comment #96 from Peter Zhao <peterzhaonj at 163.com> ---
(In reply to Robin Sheat from comment #95)
> (In reply to Peter Zhao from comment #94)
> > [Tue Sep 01 10:03:30 2015] [error] [client 127.0.0.1] [Tue Sep  1 10:03:30
> > 2015] opac-search.pl: [Serializer] ** encountered object '1', but neither
> > allow_blessed nor convert_blessed settings are enabled at
> > /usr/local/share/perl/5.14.2/Search/Elasticsearch/Role/Serializer/JSON.pm
> > line 24., referer: http://127.0.1.1/
> > [Tue Sep 01 10:03:30 2015] [error] [client 127.0.0.1] [Tue Sep  1 10:03:30
> > 2015] opac-search.pl: , called from sub
> > Search::Elasticsearch::Role::Client::Direct::__ANON__ at
> > /usr/local/share/perl/5.14.2/Catmandu/Store/ElasticSearch/Bag.pm line 127.
> > With vars: {'var' => {'from' => 0,'query' => {'query_string' => {'fuzziness'
> > => 'auto','default_field' => '_all','query' =>
> > '(title:best)','default_operator' => 'AND','lenient' => bless( do{\\(my $o =
> > 1)}, 'JSON::PP::Boolean' )}},'size' => 20,'facets' => {'subject' => {'terms'
> > => {'field' => 'subject__facet'}},'author' => {'terms' => {'field' =>
> > 'author__facet'}},'itype' => {'terms' => {'field' => 'itype__facet'}}}}},
> > referer: http://127.0.1.1/
> 
> Interesting. What do you get as the output of:
> 
> $ perl -MData::Dumper -MJSON -e 'print Dumper JSON::true;'
> 
> Also, what about:
> 
> perl -MJSON::XS::Boolean -e ''
> 
> Thirdly, does installing libjson-xs-perl make things work?

koha at koha:~$  perl -MData::Dumper -MJSON -e 'print Dumper JSON::true;'
$VAR1 = bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' );
koha at koha:~$ perl -MJSON::XS::Boolean -e ''
koha at koha:~$ 
koha at koha:~$ sudo apt-get install libjson-xs-perl
[sudo] password for koha: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
libjson-xs-perl 已经是最新的版本了。
libjson-xs-perl 被设置为手动安装。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

(In reply to Robin Sheat from comment #95)
> (In reply to Peter Zhao from comment #94)
> > [Tue Sep 01 10:03:30 2015] [error] [client 127.0.0.1] [Tue Sep  1 10:03:30
> > 2015] opac-search.pl: [Serializer] ** encountered object '1', but neither
> > allow_blessed nor convert_blessed settings are enabled at
> > /usr/local/share/perl/5.14.2/Search/Elasticsearch/Role/Serializer/JSON.pm
> > line 24., referer: http://127.0.1.1/
> > [Tue Sep 01 10:03:30 2015] [error] [client 127.0.0.1] [Tue Sep  1 10:03:30
> > 2015] opac-search.pl: , called from sub
> > Search::Elasticsearch::Role::Client::Direct::__ANON__ at
> > /usr/local/share/perl/5.14.2/Catmandu/Store/ElasticSearch/Bag.pm line 127.
> > With vars: {'var' => {'from' => 0,'query' => {'query_string' => {'fuzziness'
> > => 'auto','default_field' => '_all','query' =>
> > '(title:best)','default_operator' => 'AND','lenient' => bless( do{\\(my $o =
> > 1)}, 'JSON::PP::Boolean' )}},'size' => 20,'facets' => {'subject' => {'terms'
> > => {'field' => 'subject__facet'}},'author' => {'terms' => {'field' =>
> > 'author__facet'}},'itype' => {'terms' => {'field' => 'itype__facet'}}}}},
> > referer: http://127.0.1.1/
> 
> Interesting. What do you get as the output of:
> 
> $ perl -MData::Dumper -MJSON -e 'print Dumper JSON::true;'
> 
> Also, what about:
> 
> perl -MJSON::XS::Boolean -e ''
> 
> Thirdly, does installing libjson-xs-perl make things work?

koha at koha:~$  perl -MData::Dumper -MJSON -e 'print Dumper JSON::true;'
$VAR1 = bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' );
koha at koha:~$ perl -MJSON::XS::Boolean -e ''
koha at koha:~$ 
koha at koha:~$ sudo cpanm JSON::XS

 After "JSON::XS" was installed, Opac works well. Thanks a lot!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list