/[webpac]/trunk2/all2all.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk2/all2all.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 460 by dpavlin, Tue Sep 21 20:43:43 2004 UTC revision 466 by dpavlin, Thu Sep 23 23:17:42 2004 UTC
# Line 115  while (my $rec = $webpac->fetch_rec) { Line 115  while (my $rec = $webpac->fetch_rec) {
115          foreach my $ds (@ds) {          foreach my $ds (@ds) {
116                  next if (! $ds->{'swish'});                  next if (! $ds->{'swish'});
117    
118                    # strip all non word characters from beginning or end
119                    # of word
120                    my $words = join(" ",@{$ds->{'swish'}});
121                    $words =~ s/^\W+//;
122                    $words =~ s/\W*\s+\W*/ /g;
123                    $words =~ s/\W+$//;
124    
125                  $index->insert(                  $index->insert(
126                          index_name => $ds->{'tag'},                          index_name => $ds->{'tag'},
127                          path => $f,                          #path => $f,
128                            path => $webpac->mfn,
129                          headline => $headline,                          headline => $headline,
130                          words => join(" ",@{$ds->{'swish'}})                          words => $words,
131                  );                  );
132          }          }
133    

Legend:
Removed from v.460  
changed lines
  Added in v.466

  ViewVC Help
Powered by ViewVC 1.1.26