Displaying 1 result from an estimated 1 matches for "classxapian_1_1termiterator".
2010 Oct 21
2
In-memory databases vs PHP Bindings
...ory Xapian database via
PHP bindings
$xdb_doc = new XapianWritableDatabase(PROJROOT.'/tmp/xapian/doc'.$postid,
Xapian::DB_CREATE_OR_OVERWRITE);
$xdb_doc->add_document($xdoc);
$xdb_doc->commit();
Also, FYI, the documentation here seems incomplete:
http://xapian.org/docs/apidoc/html/classXapian_1_1TermIterator.html
I had to inspect the bindings to find the rather useful get_term() method of
the TermIterator class! It does mention the use of the * operator to return
the current term but I can't see how I'd invoke that in PHP. If the
get_term method applies in all environments, it ought to be...