[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
Wed Aug 31 17:00:23 CEST 2016


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

--- Comment #22 from Koha Team Lyon 3 <koha at univ-lyon3.fr> ---
(In reply to David Cook from comment #21)
> (In reply to Fridolin SOMERS from comment #20)
> > How is this different from enabling "QueryStemming" ?
> > Automatic truncation can lead to huge number of results, consider the
> > automatic truncation of author names and short words.
> 
> That's a good question.
> 
> I suppose we'd have to look at how QueryStemming works. At a glance, it only
> adds right truncation if it was able to stem the operand I think.
> 
> I think Zebra takes care of manually handling "operand*" type queries...
> 
> So yeah... I don't know about automatic truncation. I think some users
> expect it, so they might do a query like "au:fish" and expect to get back
> results for "Fishburne" as well as "Fisher". 
> 
> If you had QueryStemming on, I doubt "fish" would produce a stemmed operand
> since it's already a stem, so that probably wouldn't work unless you had
> automatic right truncation.
> 
> That said, I don't know if that's a good thing... I personally think
> explicit truncation/wildcarding is a better idea..

Seems that QueryStemming does right truncation even if AutomaticTruncation is
disabled
provided that QueryWeightField is on
example in Lyon3.
searching the terms "fonction hypothese" in our OPAC (configured with
AutomaticTruncation on, Querystemming and QueryWeightfield off) get 2 results :
https://catalogue.univ-lyon3.fr/cgi-bin/koha/opac-detail.pl?biblionumber=373203
https://catalogue.univ-lyon3.fr/cgi-bin/koha/opac-detail.pl?biblionumber=57190

Note that the term "fonction" exists nowhere as such in the 2 records.

In our test instance, with QueryStemming and QueryWeightField on, Autotruncate
off, we get these 2 results allthesame.
But with QueryStemming on, QueryWeightField and Autotruncate off : no results.

Olivier Crouzet

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


More information about the Koha-bugs mailing list