]> git.imager.perl.org - bse.git/commitdiff
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 5bd6ffbdd9348d7d16b9e6feb39733e3c9c24bf8..5d42f89100a88d8408479d48bc04e3d91bbdd949 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);
+    }
   }
 }