[Koha-bugs] [Bug 27139] Search errors are incorrectly shown to users as no results found

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 3 03:08:41 CET 2020


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

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
Related note:

If you're using Zebra, you have QueryAutoTruncate enabled, and
QueryWeightFields enabled, you'll have fairly simple query building happening.
It leads to the following situation:

Search:
"Emperor penguin (Aptenodytes forsteri) foraging ecology" 
Query:
@attrset Bib-1 @attr 1=1016 @attr 4=6 @attr 5=1 "Emperor penguin (Aptenodytes
forsteri) foraging ecology"

Search:
Emperor penguin (Aptenodytes forsteri) foraging ecology
Query:
ZOOM error 10014 "CCL parsing error" (addinfo: "Operator expected") from
diag-set 'ZOOM'

Search:
Emperor penguin \(Aptenodytes forsteri\) foraging ecology
Query:
@attrset Bib-1 @attr 1=1016 @attr 4=6 @attr 5=1 "Emperor penguin (Aptenodytes
forsteri) foraging ecology"

ZOOM::Query::CCL2RPN returns an exception with code, addinfo, message, and
diagset fields:
$VAR1 = bless( {
                 'code' => 10014,
                 'addinfo' => 'Operator expected',
                 'message' => 'CCL parsing error',
                 'diagset' => 'ZOOM'
               }, 'ZOOM::Exception' );

We would need to return this exception or derived data from
C4::Search::getRecords() and then from
Koha::SearchEngine::Zebra::Search::search_compat().

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


More information about the Koha-bugs mailing list