You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/02/08 15:50:49 UTC

[lucy-commits] svn commit: r1241919 - in /incubator/lucy/trunk/perl: lib/Lucy/Simple.pm t/308-simple.t

Author: nwellnhof
Date: Wed Feb  8 14:50:48 2012
New Revision: 1241919

URL: http://svn.apache.org/viewvc?rev=1241919&view=rev
Log:
Replace PolyAnalyzer with EasyAnalyzer in Lucy::Simple

Modified:
    incubator/lucy/trunk/perl/lib/Lucy/Simple.pm
    incubator/lucy/trunk/perl/t/308-simple.t

Modified: incubator/lucy/trunk/perl/lib/Lucy/Simple.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/Lucy/Simple.pm?rev=1241919&r1=1241918&r2=1241919&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/Lucy/Simple.pm (original)
+++ incubator/lucy/trunk/perl/lib/Lucy/Simple.pm Wed Feb  8 14:50:48 2012
@@ -21,7 +21,7 @@ use Carp;
 use Scalar::Util qw( weaken reftype refaddr );
 
 use Lucy::Plan::Schema;
-use Lucy::Analysis::PolyAnalyzer;
+use Lucy::Analysis::EasyAnalyzer;
 use Lucy::Index::Indexer;
 use Lucy::Search::IndexSearcher;
 
@@ -48,7 +48,7 @@ sub new {
         ref($either) || $either;
 
     # Get type and schema.
-    my $analyzer = Lucy::Analysis::PolyAnalyzer->new( language => $language );
+    my $analyzer = Lucy::Analysis::EasyAnalyzer->new( language => $language );
     $self->{type} = Lucy::Plan::FullTextType->new( analyzer => $analyzer, );
     my $schema = $self->{schema} = Lucy::Plan::Schema->new;
 

Modified: incubator/lucy/trunk/perl/t/308-simple.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/t/308-simple.t?rev=1241919&r1=1241918&r2=1241919&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/t/308-simple.t (original)
+++ incubator/lucy/trunk/perl/t/308-simple.t Wed Feb  8 14:50:48 2012
@@ -48,7 +48,7 @@ while ( my $hit = $lucy->next ) {
 
 $lucy->add_doc( { band => 'Cream' } );
 is( $lucy->search( query => 'cream' ), 4,
-    "search uses correct PolyAnalyzer" );
+    "search uses correct EasyAnalyzer" );
 
 SKIP: {
     skip( "fork on Windows not supported by Lucy", 1 )