[Bug 11158] New: Authorities 'starts with' search returns the same as 'contains' when using ICU
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 Bug ID: 11158 Summary: Authorities 'starts with' search returns the same as 'contains' when using ICU Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Searching Assignee: gmcharlt@gmail.com Reporter: colin.campbell@ptfs-europe.com QA Contact: testopia@bugs.koha-community.org If set up to use icu tokenisation When doing an authorities search and specifying 'starts with' the result set returned is the same as with the option 'contains' For example a search on starts_with 'Smith' returns Campbell-Smith, Duncan. Smith, Bessie, 1894-1937. Smith, Sydney Goodsir, 1915-1975. Smith, Victoria. The problem appears be that the starts-with definition is being applied to each token within the heading rather than to the heading as complete field (A search for O hoping to retrieve O'Brian will return much more ) the correct return would be Smith, Bessie, 1894-1937. Smith, Sydney Goodsir, 1915-1975. Smith, Victoria. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 Colin Campbell <colin.campbell@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|gmcharlt@gmail.com |colin.campbell@ptfs-europe. | |com --- Comment #1 from Colin Campbell <colin.campbell@ptfs-europe.com> --- Created attachment 22517 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22517&action=edit Proposed patch This change appears to fix the problem. At the same time it does not appear to break the behaviour with 'chr' To test on a system set up to use ICU find a test case similar to that in the bug description. Apply the patch and redo the 'starts with' search. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 --- Comment #2 from Colin Campbell <colin.campbell@ptfs-europe.com> --- There is also a question over the rule being used to tokenise phrase searches and what would be the best default configuration (including no rule) further investigation is dependent on bug 10729 as phrase and keyword searching have different requirements in this respect -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 Zeno Tajoli <z.tajoli@cineca.it> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion CC| |z.tajoli@cineca.it --- Comment #3 from Zeno Tajoli <z.tajoli@cineca.it> --- Hi, I have test it on a system with ICU and with the patch of bug 10729. The result is this error on Opac: ZOOM error 20003 "can't set prefix query" (addinfo: "@or @attr 7=1 @attr 1=Heading 0 @and @attr 1=authtype @attr 5=100 TOPIC_TERM @attr 1=Heading \@attr 3=1 \@attr 6=3 \@attr 4=1 \@attr 5=1 "Biblia"") from diag-set 'ZOOM'</pre> Same error in Intranet auth search. Do you have a proposal for use together this patch and bug 10729 patch ? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 --- Comment #4 from Colin Campbell <colin.campbell@ptfs-europe.com> --- I've managed to reproduce Zeno's result and I'm investigating. The problem seems to be occuring irrespective to whether or not bug 10729 is applied, (which is logical looking at the error return) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 --- Comment #5 from Colin Campbell <colin.campbell@ptfs-europe.com> --- Bug 5615 may have relevance here -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 Marjorie Barry-Vila <marjorie.barry-vila@ccsr.qc.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marjorie.barry-vila@ccsr.qc | |.ca -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- The search part of the manual states that a 'begins with' search is not possible with ICU - this here seems a bit related. Is there way we can make this work? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=13751 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158 Gaetan Boisson <gaetan.boisson@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m, | |gaetan.boisson@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org