[Koha-bugs] [Bug 13414] Enable right truncation with search by relevance

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 11 10:35:50 CET 2014


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

Koha Team Lyon 3 <koha at univ-lyon3.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff

--- Comment #3 from Koha Team Lyon 3 <koha at univ-lyon3.fr> ---
Well, painfully start for this patch, my assertion about manual truncation was
wrong. So consider this comment cancel the previous one (comment 2) :

Moreover some more precisions were missing :
By now, relevance seems to not work at all when Automatic truncation is
activated or manual Truncation is used (* wilcard ) : the results are sorted by
biblionumber ascending.
It's automatic right truncation combined with relevance that this patch brings. 
I just add right truncation as a trial because it seems to match the essential
and common needs : getting the plural and very closed terms. I fear going
further would be a bit of tuning.  
By caution, I add it as a third option but maybe, it could replace the existing
enable one.




TEST PLAN :

1) Apply patch. Set QueryWeightFields syspref on default option (relevance
without truncation).

2) choose a keysearch not too much common so as to get only a small batch of
results : note the number of results. 
Note that results are sorted by biblionumber ascending and not by relevance. To
check, pass the cursor over the titles.That displays the link address in left
down corner of active window : biblionumber is visible at the end of the
address.
3) redo the search adding an s plural to your keysearch (or anything so as
keeping keysearch as radical) : note the number of results. this can be higher
than previous ones.
4) Among these last results, try to find a record where only the plural form is
present (checking in Marc tab). Call it recordTest.
5) Turn QueryWeightFields syspref on right truncation option,
redo 1 and note the results number. It's not any more sorted by biblionumber.
Little more by relevance( little more because relevance in koha is far from
beeing perfect : for example high ranking on exact title doesn't make effects).
There could be results where the plural form of keyword had been found (and the
singular one is not present), more possibly at the end of the list.
To be sure, look for recordTest record.
6) redo 3 and note the number of results. this one should be smaller (these
results must be included in previous one).

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


More information about the Koha-bugs mailing list