/[smecontribs]/rpms/smeserver-ezmlm-www/contribs10/smeserver-ezmlm-www-2.0.0-bz11909-sme10.patch
ViewVC logotype

Diff of /rpms/smeserver-ezmlm-www/contribs10/smeserver-ezmlm-www-2.0.0-bz11909-sme10.patch

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

Revision 1.1 by jpp, Wed Mar 16 04:27:11 2022 UTC Revision 1.2 by jpp, Sat Mar 19 03:26:14 2022 UTC
# Line 245  diff -Nur --no-dereference smeserver-ezm Line 245  diff -Nur --no-dereference smeserver-ezm
245  +  +
246  +LIST: foreach my $list (@Lists) {  +LIST: foreach my $list (@Lists) {
247  +        +      
248  +       # load the right KinoSearch module (for backwards compatibility)  +       # load the right KinoSearch1 module (for backwards compatibility)
249  +       my $kinosearch_version = '';  +       my $kinosearch_version = '';
250  +       if ($Engine eq 'kinosearch') {  +       if ($Engine eq 'kinosearch') {
251  +               if ($opt{update} && -e "$list->{index_dir}/kinostats") {  +               if ($opt{update} && -e "$list->{index_dir}/kinostats") {
# Line 255  diff -Nur --no-dereference smeserver-ezm Line 255  diff -Nur --no-dereference smeserver-ezm
255  +                       $kinosearch_version = 'old';  +                       $kinosearch_version = 'old';
256  +               } else {  +               } else {
257  +                       eval q{  +                       eval q{
258  +                               use KinoSearch::InvIndexer;  +                               use KinoSearch1::InvIndexer;
259  +                               use KinoSearch::Analysis::PolyAnalyzer;  +                               use KinoSearch1::Analysis::PolyAnalyzer;
260  +                       };  +                       };
261  +                       $kinosearch_version = 'new';  +                       $kinosearch_version = 'new';
262  +               }  +               }
# Line 294  diff -Nur --no-dereference smeserver-ezm Line 294  diff -Nur --no-dereference smeserver-ezm
294  +                       );  +                       );
295  +               }  +               }
296  +       } elsif ($Engine eq 'kinosearch' && $kinosearch_version eq 'new') {  +       } elsif ($Engine eq 'kinosearch' && $kinosearch_version eq 'new') {
297  +               my $analyzer = KinoSearch::Analysis::PolyAnalyzer->new( language => 'en' );  +               my $analyzer = KinoSearch1::Analysis::PolyAnalyzer->new( language => 'en' );
298  +               $writer = KinoSearch::InvIndexer->new(  +               $writer = KinoSearch1::InvIndexer->new(
299  +                       invindex => $list->{index_dir},  +                       invindex => $list->{index_dir},
300  +                       create   => $opt{create} ? 1 : 0,  +                       create   => $opt{create} ? 1 : 0,
301  +                       analyzer => $analyzer,  +                       analyzer => $analyzer,


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed