You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2010/10/28 23:50:16 UTC

[lucy-commits] svn commit: r1028511 - /incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm

Author: marvin
Date: Thu Oct 28 21:50:16 2010
New Revision: 1028511

URL: http://svn.apache.org/viewvc?rev=1028511&view=rev
Log:
Fix outdated sample code.

Modified:
    incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm

Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm?rev=1028511&r1=1028510&r2=1028511&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm Thu Oct 28 21:50:16 2010
@@ -23,7 +23,8 @@ __END__
 __BINDING__
 
 my $synopsis = <<'END_SYNOPSIS';
-    my $lexicon = $index_reader->lexicon( field => 'content' );
+    my $lex_reader = $seg_reader->obtain('KinoSearch::Index::LexiconReader');
+    my $lexicon = $lex_reader->lexicon( field => 'content' );
     while ( $lexicon->next ) {
        print $lexicon->get_term . "\n";
     }