[Xapian-discuss] Stemming question`

Jim jim at fayettedigital.com
Mon Feb 18 14:07:40 GMT 2008


Either I don't understand something or I'm doing it wrong.  I have the 
following Perl code indexing a set of files:

my $databaseDirectory="/var/lib/omega/data/default";

my $indexDb = Search::Xapian::WritableDatabase->new($databaseDirectory,
             Search::Xapian::DB_CREATE_OR_OPEN) or
     die "can't create index db object: $!\n";
...
foreach my $key (@sortedChapters) {
    my $doc = Search::Xapian::Document->new();
    my $termGenerator = new Search::Xapian::TermGenerator();
    $termGenerator->set_stemmer(new Search::Xapian::Stem("english"));
    $termGenerator->set_document($doc);
    my $c = $key;
    my $body = $chapters{$c}{body};
    my $cnt=0;
    $termGenerator->index_text($body)
...

But when I run delve -r 50 /var/lib/omega/data/default I see no 
stemming.  For example:

time times
sound sounded south southern
wandered wanderer

Are all shown as terms.

Suggestions?

Thanks,
Jim.



More information about the Xapian-discuss mailing list