Search::InvertedIndex::Simple is a Perl module to build indexes for a set of search keys.
Synopsis
my($dataset) = [
{ # Index: 0.
address => 'Here',
event => 'Start',
time => 'Now',
},
{ # Index: 1.
address => 'Heaven',
event => 'Exit',
time => 'Then',
},
{ # Index: 2.
address => 'There',
event => 'Finish',
time => 'Thus',
}
];
my($keyset) = [qw/address time/];
my($index) = Search::InvertedIndex::Simple -> new
(
dataset => $dataset,
keyset => $keyset,
) -> build_index();
my(@index) = $$index{'address'}{'He'} -> intersection($$index{'time'}{'T'}) );
Product's homepage
Requirements:
· Perl