@@ -, +, @@ - rank 1 : Title-cover,ext : exact title-cover - rank 2 : ti,ext : exact title - rank 3 : Title-cover,phr : phrase title-cover - rank >7 : queries without index - Enable QueryWeightFields syspref - Perform a search, with sort by relevance, with two words ofen contained in title, but never one near the other. For example : 'History France' --- C4/Search.pm | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -856,6 +856,7 @@ sub _build_weighted_query { "Title-cover,ext,r1=\"$operand\""; # exact title-cover $weighted_query .= " or ti,ext,r2=\"$operand\""; # exact title $weighted_query .= " or Title-cover,phr,r3=\"$operand\""; # phrase title + $weighted_query .= " or ti,wrdl,r4=\"$operand\""; # words in title #$weighted_query .= " or any,ext,r4=$operand"; # exact any #$weighted_query .=" or kw,wrdl,r5=\"$operand\""; # word list any $weighted_query .= " or wrdl,fuzzy,r8=\"$operand\"" --