Displaying 1 result from an estimated 1 matches for "xdb_post".
Did you mean:
xdb_posts
2010 Oct 21
2
In-memory databases vs PHP Bindings
...ch).
However, I can't work out how to create an in-memory database via the PHP
bindings. Here's what I've got so far, using a disk-based index with an
automatic backend (third line from the end is the critical one):
// Find the document in the posts index
$xenq = new XapianEnquire($xdb_posts);
$xenq->set_query(new XapianQuery("UIDpost".$postid));
$xdoc = $xenq->get_mset(0, 1)->begin()->get_document();
// Create a database that just contains the one document
// TODO:AB:20101020: Work out how to build an in-memory Xapian database via
PHP bindings
$xdb_doc = new X...