[Xapian-discuss] How can I search multiple databases using PHP interface?

Olly Betts olly at survex.com
Tue May 9 14:57:00 BST 2006


On Mon, May 08, 2006 at 08:16:17PM -0700, Oleg Vnukov wrote:
> In the C++ doc. I see that it is possible to search multiple databases in one 
> Enquery call but it is not clear if I can do this using PHP functions.

Yes - it works exactly the same way as in C++, except the class/methods
names are currently flattened into functions.

So you want to create the Enquire object like so:

  $mydb = new_Database("/path/to/db1");
  $anotherdb = new_Database("/path/to/db2");
  Database_add_database($mydb, $anotherdb);
  $enq = new_Enquire($mydb);

Cheers,
    Olly



More information about the Xapian-discuss mailing list