[Bug 11069] New: increase title ranking in relevance when using QueryWeightFields
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Bug ID: 11069 Summary: increase title ranking in relevance when using QueryWeightFields Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching Assignee: gmcharlt@gmail.com Reporter: fridolyn.somers@biblibre.com QA Contact: testopia@bugs.koha-community.org when using QueryWeightFields to add ranking on a search without index, the search actually uses: - rank 1 : Title-cover,ext : exact title-cover - rank 2 : ti,ext : exact title - rank 3 : Title-cover,phr : phrase title-cover - rank >7 : queries without index This relevance sets title as phrase in priority and then any index. I propose to add title as words list before search on any index, so that records with all searched terms in title, even not well ordered, are more relevant. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|gmcharlt@gmail.com |fridolyn.somers@biblibre.co | |m --- Comment #1 from Fridolyn SOMERS <fridolyn.somers@biblibre.com> --- Created attachment 22028 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22028&action=edit Bug 11069 - increase title ranking in relevance when using QueryWeightFields See commit message -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 I'm just a bot <gitbot@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gitbot@bugs.koha-community. | |org When did the bot| |2013-10-30 last check this| | --- Comment #2 from I'm just a bot <gitbot@bugs.koha-community.org> --- Patch applied cleanly, go forth and signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 mathieu saby <mathieu.saby@univ-rennes2.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathieu.saby@univ-rennes2.f | |r --- Comment #3 from mathieu saby <mathieu.saby@univ-rennes2.fr> --- Good idea. I'm testing it. But don't you think that after titles, "author" and "subject" could have a specific weight more important than other indexes? Mathieu -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 --- Comment #4 from mathieu saby <mathieu.saby@univ-rennes2.fr> --- I'm not sure it is working. I entered "grands moderne" I had 3 record. The 1st is "Alberto Giacometti", in the series "Collection des grands peintres modernes" (field 225) and "Collection des grands peintres classiques" (field 410) The 2d is "Les grands courants de la linguistique moderne" The 3rd is "Miro" in the series "Collection des grands peintres modernes" (only in 225) Why the 2d isn't before the 1st? Mathieu -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 --- Comment #5 from Fridolin SOMERS <fridolyn.somers@biblibre.com> --- (In reply to mathieu saby from comment #4) You are looking at 225 and 410 fields. In default config those fields are indexed has "Title-series". This patch manages only "Title" index. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 --- Comment #6 from mathieu saby <mathieu.saby@univ-rennes2.fr> --- (In reply to Fridolin SOMERS from comment #5)
(In reply to mathieu saby from comment #4) You are looking at 225 and 410 fields. In default config those fields are indexed has "Title-series". This patch manages only "Title" index.
Yes, that's what I understood, but in your 1st message you wrote "so that records with all searched terms in title, even not well ordered, are more relevant." So I imagined that if there are 3 records, with the 200 field of one them matching the searched terms, and only 225/410 fields matching in the 2 others, the record with the 200 matching the search terms would be the 1st in the results. But I suppose the algorithm is more complex than that (and the core of it is hardcoded in Zebra, isn't it?) Mathieu -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 --- Comment #7 from mathieu saby <mathieu.saby@univ-rennes2.fr> --- By the way, does your patch works with QueryParser? Or does QP calculate relevance differently? Mathieu -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 --- Comment #8 from Fridolin SOMERS <fridolyn.somers@biblibre.com> --- (In reply to mathieu saby from comment #6) The "Title" index is by default set on many fields, not only 200. Maybe your 1st result matches "grands moderne" in other fields. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Jesse Maseto <jesse@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Jesse Maseto <jesse@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #22028|0 |1 is obsolete| | --- Comment #9 from Jesse Maseto <jesse@bywatersolutions.com> --- Created attachment 26064 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26064&action=edit Attachment to Bug 11069 - increase title ranking in relevance when using QueryWeightFields [SIGNED-OFF] Bug 11069 - increase title ranking in relevance when using QueryWeightFields When using QueryWeightFields to add ranking on a search without index, the search actually uses: - rank 1 : Title-cover,ext : exact title-cover - rank 2 : ti,ext : exact title - rank 3 : Title-cover,phr : phrase title-cover - rank >7 : queries without index This relevance sets title as phrase in priority and then any index. This patch adds title as words list before search on any index, so that records with all searched terms in title, even not well ordered, are more relevant. Test plan : - Enable QueryWeightFields syspref - Perform a search, with sort by relevance, with two words ofen contained in title, but never one near the other. For example : 'History France' => Records with both words in title are first. For example : "Histoire de France" and "La France : 100 ans d'histoire" Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA CC| |katrin.fischer@bsz-bw.de --- Comment #10 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Git bz doesn't like me today... doing this the old way. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26064|0 |1 is obsolete| | --- Comment #11 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 27303 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27303&action=edit PASSED-QA-Bug-11069-increase-title-ranking-in-relevance-when-using-QueryWeightFields -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master CC| |gmcharlt@gmail.com --- Comment #12 from Galen Charlton <gmcharlt@gmail.com> --- Pushed to master. Thanks, Fridolin! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069 Fridolin SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |Pushed to Stable --- Comment #13 from Fridolin SOMERS <fridolyn.somers@biblibre.com> --- Pushed to 3.14.x, will be in 3.14.10 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org