[Koha-bugs] [Bug 11069] increase title ranking in relevance when using QueryWeightFields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 11 11:15:05 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11069

Jesse Maseto <jesse at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22028|0                           |1
        is obsolete|                            |

--- Comment #9 from Jesse Maseto <jesse at 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 at bywatersolutions.com>

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


More information about the Koha-bugs mailing list