Top |
gboolean | xapian_term_iterator_next () |
char * | xapian_term_iterator_get_term_name () |
unsigned int | xapian_term_iterator_get_wdf () |
gboolean | xapian_term_iterator_get_term_freq () |
char * | xapian_term_iterator_get_description () |
XapianTermIterator is a class that allows iterating over terms.
A typical example is:
1 2 3 4 |
XapianTermIterator *iter = xapian_database_enumerate_all_terms (db); while (xapian_term_iterator_next (iter)) g_print ("%s", xapian_term_iterator_get_term (iter)); |
gboolean
xapian_term_iterator_next (XapianTermIterator *iter
);
Advances the iter
forward.
You should use the return value to check if iter
is still
valid after being advanced, before using the XapianTermIterator
API.
Since: 1.6
char *
xapian_term_iterator_get_term_name (XapianTermIterator *iter
);
Retrieves the term name of the current item pointed by iter
.
Since: 1.6
unsigned int xapian_term_iterator_get_wdf (XapianTermIterator *iter
,GError **error
);
Retrieves the WDF of the current item pointed by iter
.
Since: 1.6
gboolean xapian_term_iterator_get_term_freq (XapianTermIterator *iter
,unsigned int *res
,GError **error
);
Retrieves the term frequency of the current item pointed by iter
.
Since: 1.6
char *
xapian_term_iterator_get_description (XapianTermIterator *iter
);
Retrieves a description of iter
, typically used for debugging.
Since: 1.6