[Xapian-discuss] TermIterator question

zhiguo li zhiguo.li at gmail.com
Thu Nov 13 05:42:07 GMT 2008


Hi,

I would like to have two term iterators to go over the list of terms like
the following:

for (t1 = query.get_terms_begin(); t1 != query.get_terms_end(); t1++)

       for (t2=t1+1; t2 != query.get_terms_end(); t2++)

{

    do something terms pointed by t1 and t2...

}

When I tried the above, I got error since I cannot perform t2 = t1 + 1 or t2
= ++t1.

Any suggestions?

I apperaciate your help!

Kevin


More information about the Xapian-discuss mailing list