Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Plucene::Search::IndexUsercContributed Perl DPlucene::Search::IndexSearcher(3)

NAME
       Plucene::Search::IndexSearcher -	The index searcher

SYNOPSIS
	       # isa Plucene::Search::Searcher

	       my $searcher = Plucene::Search::IndexSearcher
		       ->new(Plucene::Index::Reader $reader);

	       my Plucene::Index::Reader $reader = $searcher->reader;
	       my	  Plucene::Document $doc = $reader->doc($id);

	       $searcher->close;

DESCRIPTION
       Search over an IndexReader

METHODS
   new
	       my $searcher = Plucene::Search::IndexSearcher
		       ->new(Plucene::Index::Reader $reader);

       This will create	a new Searcher object with the passed
       Plucene::Index::Reader or subclass thereof.

   reader
	       my Plucene::Index::Reader $reader = $searcher->reader;

       This will return	the reader this	searcher was made with.

   search_top
       The top search results.

   doc
	       my Plucene::Document $doc = $reader->doc($id);

       This will return	the Plucene::Document $id.

   doc_freq / max_doc
       get / set these

   close
       This will close the reader(s) associated	with the searcher.

perl v5.32.0			  2005-09-05 Plucene::Search::IndexSearcher(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Plucene::Search::IndexSearcher&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help