Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

plucene::search::termquery(3pm) [debian man page]

Plucene::Search::TermQuery(3pm) 			User Contributed Perl Documentation			   Plucene::Search::TermQuery(3pm)

NAME
Plucene::Search::TermQuery - a query that contains a term SYNOPSIS
# isa Plucene::Search::Query $term_query->normalize($norm); my $ssw = $term_query->sum_squared_weights($searcher); my $as_string = $term_query->as_string($field); DESCRIPTION
A query that matches a document containing a term. Term query are the simplest possible Plucene queries and are used to match a single word. Term queries are represented by instances of the TermQuery class and contain the desired term (word) and a field name, both are case sensitive. The field specified in a Term query must be a document field that was specified as 'indexible' during the indexing process. If the field was specified during indexing as 'tokenized' than the term will be matched against each of tokens (words) found in that field, otherwise, it will be matched against the entire content of that field. A term query may have an optional boost factor (default = 1.0) that allows to increase or decrease the ranking of documents it matches. METHODS
term / idf / weight Get / set these attributes sum_squared_weights my $ssw = $term_query->sum_squared_weights($searcher); This will return the sum squared weights for the passed in searcher. normalize $term_query->normalize($norm); to_string my $as_string = $term_query->as_string($field); perl v5.12.4 2011-08-14 Plucene::Search::TermQuery(3pm)

Check Out this Related Man Page

Plucene::Index::SegmentsReader(3pm)			User Contributed Perl Documentation		       Plucene::Index::SegmentsReader(3pm)

NAME
Plucene::Index::SegmentsReader - reads the segments SYNOPSIS
my $segs_reader = Plucene::Index::SegmentsReader ->new($dir, Plucene::Index::SegmentReader @readers); my $num_docs = $segs_reader->num_docs; my $doc = $segs_reader->document($id); my $norms = $seg_reader->norms($field); my $doc_freq = $segs_reader->doc_freq($term); my Plucene::Index::SegmentsTermEnum $term_enum = $segs_reader->terms($term); my Plucene::Index::SegmentsTermDocs $term_docs = $segs_reader->term_docs; my Plucene::Index::SegmentsTermPositions $term_positions = $segs_reader->term_positions; if ($segs_reader->is_deleted($id)) { ... } DESCRIPTION
This is the segments reader class. METHODS
new my $segs_reader = Plucene::Index::SegmentsReader ->new($dir, Plucene::Index::SegmentReader @readers); This will create a new Plucene::Index::SegmentsReader object with the passed directory and Plucene::Index::SegmentReader objects. num_docs my $num_docs = $segs_reader->num_docs; This will return the number of documents in all the segments in the Reader. document my $doc = $segs_reader->document($id); This will return the document at the passed document id. is_deleted if ($segs_reader->is_deleted($id)) { ... } norms my $norms = $seg_reader->norms($field); This returns the norms for the passed field. terms my Plucene::Index::SegmentsTermEnum $term_enum = $segs_reader->terms($term); This will return the Plucene::Index::SegmentsTermEnum onject for the passed in term. doc_freq my $doc_freq = $segs_reader->doc_freq($term); This returns the number of documents containing the passed term. term_docs my Plucene::Index::SegmentsTermDocs $term_docs = $segs_reader->term_docs; This will return the Plucene::Index::SegmentsTermDocs object. term_positions my Plucene::Index::SegmentsTermPositions $term_positions = $segs_reader->term_positions; This will return the Plucene::Index::SegmentsTermPositions object. perl v5.12.4 2011-08-14 Plucene::Index::SegmentsReader(3pm)
Man Page