[Bug 37433] New: Warning 'Use of uninitialized value $f/$d in hash element...' in log when sorting by relevance
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37433 Bug ID: 37433 Summary: Warning 'Use of uninitialized value $f/$d in hash element...' in log when sorting by relevance Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Searching - Elasticsearch Assignee: januszop@gmail.com Reporter: januszop@gmail.com QA Contact: testopia@bugs.koha-community.org With ES, searches with Sort set to Relevance produce following warnings in log file: [WARN] Use of uninitialized value $f in hash element at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 728. [WARN] Use of uninitialized value $d in hash element at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 728. This is because sort_by = 'relevance' does not contain underscore. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37433 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37433 --- Comment #1 from Janusz Kaczmarek <januszop@gmail.com> --- Created attachment 169418 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169418&action=edit Bug 37433: Warning 'Use of uninitialized value $f/$d in hash element...' in log when sorting by relevance With ES, searches with Sort set to Relevance produce following warnings in log file: [WARN] Use of uninitialized value $f in hash element at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 728. [WARN] Use of uninitialized value $d in hash element at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 728. This is because sort_by = 'relevance' does not contain underscore. Test plan: ========== 1. Have a test environment with ES enabled. 2. Perform a search for a common word (like 'greek'). Make sure that the sort order is set to 'Relevance' (the default option in ktd). Check the content of the plack-intranet-error.log file--you should see warning lines with a messages "Use of uninitialized value $f in hash element ..." "Use of uninitialized value $d in hash element ..." 3. Apply the patch; restart_all. 4. Repeat p. 2. The log should be clean now. Sponsored-by: Ignatianum University in Cracow -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37433 Roman Dolny <roman.dolny@jezuici.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37433 Roman Dolny <roman.dolny@jezuici.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169418|0 |1 is obsolete| | --- Comment #2 from Roman Dolny <roman.dolny@jezuici.pl> --- Created attachment 169422 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169422&action=edit Bug 37433: Warning 'Use of uninitialized value $f/$d in hash element...' in log when sorting by relevance With ES, searches with Sort set to Relevance produce following warnings in log file: [WARN] Use of uninitialized value $f in hash element at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 728. [WARN] Use of uninitialized value $d in hash element at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 728. This is because sort_by = 'relevance' does not contain underscore. Test plan: ========== 1. Have a test environment with ES enabled. 2. Perform a search for a common word (like 'greek'). Make sure that the sort order is set to 'Relevance' (the default option in ktd). Check the content of the plack-intranet-error.log file--you should see warning lines with a messages "Use of uninitialized value $f in hash element ..." "Use of uninitialized value $d in hash element ..." 3. Apply the patch; restart_all. 4. Repeat p. 2. The log should be clean now. Sponsored-by: Ignatianum University in Cracow Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37433 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37433 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Janusz Kaczmarek <januszop@gmail.com> --- *** This bug has been marked as a duplicate of bug 36879 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org