Mathieu,
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\""; #
You have. Quite a big bug, actually. 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
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. 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