[Koha-bugs] [Bug 22997] Searching gives no results in auth_finder.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Aug 11 12:06:05 CEST 2019


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #8 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
I am seeing some issues here - when I used the linking on an existing sample
record I got:

Search main heading ($a only), contains: Waeschke, Hermannus,
search main headin, contains: 1850- [from old catalog]


Resulting in:

[Request] ** [http://localhost:9200]-[400] [query_shard_exception] Failed to
parse query [(1850-) AND ([from*) AND (old*) AND (catalog])], with:
{"index":"koha_kohadev_authorities","index_uuid":"S12XDtQeTMWLoBsmUsRlnw"},
called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at
/home/vagrant/kohaclone/Koha/SearchEngine/Elasticsearch/Search.pm line 100.
With vars: {'body' => {'status' => 400,'error' => {'phase' => 'query','grouped'
=> bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),'root_cause' => [{'type' =>
'query_shard_exception','reason' => 'Failed to parse query [(1850-) AND
([from*) AND (old*) AND (catalog])]','index_uuid' =>
'S12XDtQeTMWLoBsmUsRlnw','index' => 'koha_kohadev_authorities'}],'type' =>
'search_phase_execution_exception','reason' => 'all shards
failed','failed_shards' => [{'index' => 'koha_kohadev_authorities','shard' =>
0,'node' => 'Secs-Ua8SyyeB_6hIXEnSA','reason' => {'type' =>
'query_shard_exception','reason' => 'Failed to parse query [(1850-) AND
([from*) AND (old*) AND (catalog])]','index' =>
'koha_kohadev_authorities','index_uuid' => 'S12XDtQeTMWLoBsmUsRlnw','caused_by'
=> {'caused_by' => {'type' => 'parse_exception','reason' => 'Encountered "
<RANGE_GOOP> "AND "" at line 1, column 21.
Was expecting:
    "TO" ...
    '},'reason' => 'Cannot parse \'(1850-) AND ([from*) AND (old*) AND
(catalog])\': Encountered " <RANGE_GOOP> "AND "" at line 1, column 21.
Was expecting:
    "TO" ...
    ','type' => 'parse_exception'}}}]}},'request' => {'serialize' => 'std','qs'
=> {},'path' => '/koha_kohadev_authorities/_search','method' => 'GET','ignore'
=> [],'mime_type' => 'application/json','body' => {'query' => {'bool' =>
{'must' => [{'query_string' => {'query' => '(Waeschke,) AND
(Hermannus,)','default_field' => 'heading-main','analyze_wildcard' => bless(
do{\(my $o = 1)}, 'JSON::PP::Boolean' )}},{'query_string' => {'query' =>
'(1850-) AND ([from*) AND (old*) AND (catalog])','default_field' =>
'heading','analyze_wildcard' =>
$VAR1->{'request'}{'body'}{'query'}{'bool'}{'must'}[0]{'query_string'}{'analyze_wildcard'}}}]}},'from'
=> 0,'size' => 20,'sort' => [{'heading__sort.phrase' => 'asc'}]}},'status_code'
=> 400}
Unable to perform your search. Please try again.

When I remove the second input, it works with and without the patch?

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


More information about the Koha-bugs mailing list