From 049eb6f8ff94a7d2ead9700057ffba2350d411e1 Mon Sep 17 00:00:00 2001 From: Len Kranendonk Date: Fri, 11 Aug 2006 09:55:20 +0000 Subject: [PATCH] RFE: By default Search results need to match ALL keywords --- lib/WebGUI/Search.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/WebGUI/Search.pm b/lib/WebGUI/Search.pm index 9561fbb6d..6d25b2691 100644 --- a/lib/WebGUI/Search.pm +++ b/lib/WebGUI/Search.pm @@ -282,6 +282,10 @@ sub search { } #-------------- Edited by zxp end $terms[$i] .= "*"; + + # By default results need to match ALL keywords / Len Kranendonk 20060811 + $terms[$i] = "+" . $terms[$i] if ($terms[$i] !~ m/^[+-]/); + } $keywords = join(" ", @terms); }