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.
On Mon, Feb 18, 2008 at 09:07:40AM -0500, Jim wrote:> time times > sound sounded south southern > wandered wanderer > > Are all shown as terms.Stemmed terms produced by TermGenerator have a Z prefix: http://xapian.org/docs/termgenerator.html Cheers, Olly