Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

search::xapian::termiterator(3pm) [debian man page]

Xapian::TermIterator(3pm)				User Contributed Perl Documentation				 Xapian::TermIterator(3pm)

NAME
Search::Xapian::TermIterator - Iterate over sets of terms. DESCRIPTION
This object represents a stream of terms. It overloads "++" for advancing the iterator, or you can explicitly call the "inc" method. This class also overloads "eq", "ne", "==", "!=", and "" (stringification). METHODS
new Constructor. Defaults to a uninitialized iterator. clone inc Advance the iterator by one. (Called implictly by "++" overloading ) skip_to <tname> Skip the iterator to term tname, or the first term after tname if tname isn't in the list of terms being iterated. get_termname Get the name of the current term. get_wdf Return the wdf of the current term (if meaningful). get_termfreq Return the term frequency of the current term (if meaningful). positionlist_begin Return Search::Xapian::PositionIterator pointing to start of positionlist for current term. positionlist_end Return Search::Xapian::PositionIterator pointing to end of positionlist for current term. get_description Returns a string describing this object. equal <termiterator> Checks if a termiterator is the same as this termiterator. Also overloaded as the "eq" and "!=" operators. nequal <termiterator> Checks if a termiterator is different from this termiterator. Also overloaded as the "ne" and "!=" operators. SEE ALSO
Search::Xapian,Search::Xapian::Document perl v5.14.2 2012-05-09 Xapian::TermIterator(3pm)

Check Out this Related Man Page

Xapian::TermGenerator(3pm)				User Contributed Perl Documentation				Xapian::TermGenerator(3pm)

NAME
Search::Xapian::TermGenerator - Parses a piece of text and generates terms. DESCRIPTION
This module takes a piece of text and parses it to produce words which are then used to generate suitable terms for indexing. The terms generated are suitable for use with Search::Xapian::Query objects produced by the Search::Xapian::QueryParser class. SYNOPSIS
use Search::Xapian; my $doc = new Search::Xapian::Document(); my $tg = new Search::Xapian::TermGenerator(); $tg->set_stemmer(new Search::Xapian::Stem("english")); $tg->set_document($doc); $tg->index_text("The cat sat on the mat"); METHODS
new TermGenerator constructor. set_stemmer <stemmer> Set the Search::Xapian::Stem object to be used for generating stemmed terms. set_stopper <stopper> Set the Search::Xapian::Stopper object to be used for identifying stopwords. set_document <document> Set the Search::Xapian::Document object to index terms into. get_document <document> Get the currently set Search::Xapian::Document object. index_text <text> [<weight> [<prefix>]] Indexes the text in string <text>. The optional parameter <weight> sets the wdf increment (default 1). The optional parameter <prefix> sets the term prefix to use (default is no prefix). index_text_without_positions <text> [<weight> [<prefix>]] Just like index_text, but no positional information is generated. This means that the database will be significantly smaller, but that phrase searching and NEAR won't be supported. increase_termpos [<delta>] Increase the termpos used by index_text by <delta> (default 100). This can be used to prevent phrase searches from spanning two unconnected blocks of text (e.g. the title and body text). get_termpos Get the current term position. set_termpos <termpos> Set the current term position. get_description Return a description of this object. REFERENCE
http://www.xapian.org/docs/sourcedoc/html/classXapian_1_1TermGenerator.html perl v5.14.2 2012-05-09 Xapian::TermGenerator(3pm)
Man Page