Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
Search::Xapian::PositionIterator - Iterate over sets of positions. DESCRIPTION
This iterator represents a stream of positions for a term. It overloads "++" for advancing the iterator, or you can explicitly call the "inc" method. This class also overloads "eq", "ne", "==", "!=", "" (stringification) and "0+" (conversion to an integer). METHODS
new Constructor. Defaults to an uninitialized iterator. clone inc Advance the iterator by one. (Called implictly by "++" overloading). skip_to <termpos> Skip the iterator to term position termpos, or the first term position after termpos if termpos isn't in the list of term positions being iterated. equal <term> Checks if a term is the same as this term. Also overloaded to the "eq" and "==" operators. nequal <term> Checks if a term is different from this term. Also overloaded to the "ne" and "!=" operators. get_termpos Return the term position the iterator is currently on. Also implemented as conversion to an integer. get_description Return a description of this object. Also implemented as stringification. SEE ALSO
Search::Xapian,Search::Xapian::Document perl v5.14.2 2012-05-09 Xapian::PositionIterator(3pm)

Check Out this Related 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)
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search term and output term in desired field

Hi All, I have an input_file below and i would like to use Perl to search for the term "aaa" and output the 3rd term in the same row as "aaa".For Example, i want to search for the term "ddd" and would want the code to ouput the 3rd term in the same row which is "fff". Can somebody help ? ... (28 Replies)
Discussion started by: Raynon
28 Replies

2. Shell Programming and Scripting

Xapian with perl

Hi All, I am developing an application which need to search in postgres db for the files. I wanted to use Xapian for that. I am not sure how to proceed further for it . I have downloaded the xapian 0.9.9 version. I need to bind my perl db with the xapian search mechanism. Any help in... (1 Reply)
Discussion started by: alma
1 Replies

3. Shell Programming and Scripting

Grab terms leaving spacings intact

Hi All, I have an input below. I would want to print the 2nd to 5th term leaving the same number of spaces in between each term to be intact. Here in the example, there are 4 spacings between term " ABC " and " 111 ", and i tried the below awk codes but they don;t work. Can anybody give me... (3 Replies)
Discussion started by: Raynon
3 Replies

4. Shell Programming and Scripting

Search for multiple strings in specific position

Hi, I need to search for some strings in specific positions in a file. If the strings: "foo1", "foo2" or "foo3" is on position 266 or position 288 in a file i want the whole line printed. Any idea how to do it? (5 Replies)
Discussion started by: HugoH
5 Replies

5. Shell Programming and Scripting

system() function nd backtrick term in linux

I want to know about the difference between system() function nd backtrick term in linux???? (1 Reply)
Discussion started by: Mac91
1 Replies

6. Shell Programming and Scripting

Remove dashes if exist between positions 351-357 and then add - at the 357th position

I need to remove dash (i.e. -) if present from positions 351-357, and then add - (dash) at 357th position. For example in following first and 3rd record we got Before processing 1) 1st Record positions 351-357 = 0-12345 2) 3rd Record positions 351-357 = 00-4567 After processing:- 1) 1st... (7 Replies)
Discussion started by: lancesunny
7 Replies

7. Shell Programming and Scripting

Modifying a sequence using positions!

Hi.. i have two files one with positions information and another is sequence information. Now i need to read the positions and take the snps at the positions and replace that position base with the snp information in the sequence and write it in the snp information file.. for example Snp file... (6 Replies)
Discussion started by: empyrean
6 Replies