Jarrod Roberson
2008-Apr-07 20:30 UTC
[Xapian-discuss] How to iterate over "all terms" in the database using the java-swig bindings?
I see that there is Database.allTermsBegin() and Database.allTermsEnd() but I can't figure out how they work together to iterate over all the terms in the database.
Colin Bell
2008-Apr-07 20:43 UTC
[Xapian-discuss] How to iterate over "all terms" in the database using the java-swig bindings?
Hi Jarrod
I'm not sure which programming language your using but the C++ way of
doing it is
Database db;
db = .... your database
for (TermIterator j = db.allterms_begin(); j != db.allterms_end(); +
+j) {
string termItem = *j;
}
I hope this helps
On 7 Apr 2008, at 21:30, Jarrod Roberson wrote:
> I see that there is Database.allTermsBegin() and
> Database.allTermsEnd() but
> I can't figure out how they work together to iterate over all the
> terms in
> the database.
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss