in reply to Indexing Files with Plucene::Simple
The following would work, but I think you must be expecting something different to happen, such as an automatic index of all files in the directory you give. It won't do that.
#! /usr/bin/perl -w use strict; use Plucene::Simple; use Data::Dumper; my %documents = (file1 => 'content1', file2 => 'content2'); my $index = Plucene::Simple->open( "~/MyPerl/QA/data/index" ); for my $id (keys %documents) { $index->add($id => $documents{$id}); } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Indexing Files with Plucene::Simple
by monkfan (Curate) on Nov 04, 2004 at 02:25 UTC | |
by perrin (Chancellor) on Nov 04, 2004 at 15:19 UTC |