treat the whole product code as a word for indexing
authorTony Cook <tony@develop-help.com>
Mon, 18 Jan 2010 00:45:18 +0000 (00:45 +0000)
committertony <tony@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Mon, 18 Jan 2010 00:45:18 +0000 (00:45 +0000)
site/cgi-bin/modules/BSE/Index/BSE.pm

index 5bd6ffb..5d42f89 100644 (file)
@@ -67,6 +67,9 @@ sub process_article {
       $self->process($indexas, $section->{id}, $score, $self->{weights}{$indexas}, \%seen,
                     @buffer) if @buffer;
     }
+    if ($field eq 'product_code' && $text) {
+      $self->process($indexas, $section->{id}, $score, $self->{weights}{$indexas}, \%seen, $text);
+    }
   }
 }