treat full birth/death dates specially, as tsearch2 is inconsistent between 8.1 and 8.2
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / FTS.pm
index 6dd03c0..f881a22 100644 (file)
@@ -106,6 +106,7 @@ sub decompose {
        $term =~ s/(^|\s+)-(\w+)/$1!$2/go;
        $term =~ s/\b(\+)(\w+)/$2/go;
        $term =~ s/^\s*\b(.+)\b\s*$/$1/o;
+       $term =~ s/(\d{4})-(\d{4})/$1 $2/go;
        #$term =~ s/^(?:an?|the)\b(.*)/$1/o;
 
        $log->debug("Stripped search term string is [$term]",DEBUG);