[Koha-devel] Better weigthing for specific indexes ?
Mathieu Saby
mathieu.saby at univ-rennes2.fr
Wed Oct 24 12:06:09 CEST 2012
Hello
I think I have found a little bug, but I am not sure of it.
in C4/Search.pm (sub _build_weighted_query), I found this :
826 $weighted_query .= " $index,ext,r1=\"$operand\""; # exact
index
827 #$weighted_query .= " or (title-sort-az=0 or
$index,startswithnt,st-word,r3=$operand #)";
828 $weighted_query .= " or $index,phr,r3=\"$operand\""; #
phrase index
829 $weighted_query .=
830 " or $index,rt,wrdl,r3=\"$operand\""; # word list index
So Word list index is on the same plane as Phrase index.
I suppose if we define Phrase index as r2, the weighting would be more
accurate?
I don't know how zebra is working internally, so could somebody confirm
please ?
Regards,
M. Saby
Rennes 2 University
--
Mathieu Saby
Service d'Informatique Documentaire
Service Commun de Documentation
Université Rennes 2
Téléphone : 02 99 14 12 65
Courriel : mathieu.saby at univ-rennes2.fr
More information about the Koha-devel
mailing list