Mathieu, > Hello > I think I have found a little bug, but I am not sure of it.
You have. Quite a big bug, actually. > 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? Possibly. The assumption behind the current weighting is that patrons often do not enter the entire title (or author, publisher, whatever) of a book. I think I prefer your assumption, which is that if a patron does enter the entire field, they want to see that result first. > I don't know how zebra is working internally, so could somebody confirm please ? Unfortunately, this change will not have as much impact as we might like. Phrase indexes are used only for complete-subfield searches, which actually come into play only rarely. So the term we're discussing turning into r2 may in fact already be a no-op. I'd say it's definitely worth trying, though. Regards, Jared
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/