Lucene

 view release on metacpan or  search on metacpan

lib/Lucene.pm  view on Meta::CPAN

  # ... using different boosts per field
  my %rh_boosts = { "title" => 3, "subject" => 2 };
  my $parser = new Lucene::MultiFieldQueryParser(\@field_names, $analyzer, \%rh_boosts);
  my $query = $parser->parse($query_string);

=head2 Close your Store

  $store->close;
  undef $store;

=head2 Customize Lucene's scoring formula (for Lucene experts)

It is possible to customize Lucene's scoring formula by defining your own
Similarity object using perl XS and passing it on to both the IndexWriter
and the IndexSearcher

  $searcher->setSimilarity($similarity);
  $writer->setSimilarity($similarity);

=head2 Merge indexes

To merge several indexes into a single one, use the following method of
IndexWriter



( run in 0.308 second using v1.01-cache-2.11-cpan-26ccb49234f )