|
NAMEPlucene::Search::IndexSearcher - The index searcherSYNOPSIS# 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; DESCRIPTIONSearch over an IndexReaderMETHODSnewmy $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. readermy Plucene::Index::Reader $reader = $searcher->reader; This will return the reader this searcher was made with. search_topThe top search results.docmy Plucene::Document $doc = $reader->doc($id); This will return the Plucene::Document $id. doc_freq / max_docget / set thesecloseThis will close the reader(s) associated with the searcher.
Visit the GSP FreeBSD Man Page Interface. |