[Koha-bugs] [Bug 20273] Elasticsearch: Auth-finder.pl autocomplete must use search_auth_compat

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jul 8 15:02:12 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20273

--- Comment #13 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
I'd love to test this, but I am stuck on my Elasticsearch authority search not
working at all. 

This is what I've tried:

I've reset my mappings using:
http://localhost:8081/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl?op=reset&i_know_what_i_am_doing=1

Then I've done a complete reindex.

When I search for an authority, I get an Internal server error resolving to:

[Request] ** [http://localhost:9200]-[400] [query_shard_exception] No mapping
found for [Heading__sort.phrase] in order to sort on, with:
{"index":"koha_kohadev_authorities","index_uuid":"FwdgBXbyRq-5E0F3sa4LTA"},
called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at
/usr/share/perl5/Catmandu/Store/ElasticSearch/Bag.pm line 167. With vars:
{'request' => {'method' => 'GET','path' =>
'/koha_kohadev_authorities/data/_search','ignore' => [],'mime_type' =>
'application/json','qs' => {},'body' => {'sort' => [{'Heading__sort.phrase' =>
'asc'}],'query' => {'bool' => {'should' => [{'match' => {'Heading-Main' =>
'k'}}]}},'size' => 20,'from' => 0},'serialize' => 'std'},'status_code' =>
400,'body' => {'status' => 400,'error' => {'type' =>
'search_phase_execution_exception','grouped' => bless( do{\(my $o = 1)},
'JSON::PP::Boolean' ),'failed_shards' => [{'shard' => 0,'reason' => {'index' =>
'koha_kohadev_authorities','type' => 'query_shard_exception','reason' => 'No
mapping found for [Heading__sort.phrase] in order to sort on','index_uuid' =>
'FwdgBXbyRq-5E0F3sa4LTA'},'node' => 'vSTPqetISteesIkQSA_Ehg','index' =>
'koha_kohadev_authorities'}],'phase' => 'query','reason' => 'all shards
failed','root_cause' => [{'type' => 'query_shard_exception','index' =>
'koha_kohadev_authorities','reason' => 'No mapping found for
[Heading__sort.phrase] in order to sort on','index_uuid' =>
'FwdgBXbyRq-5E0F3sa4LTA'}]}}}
Unable to perform your search. Please try again.

Anyone able to help or point me in the right direction?

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


More information about the Koha-bugs mailing list