Oleg Vnukov
2006-May-09 04:16 UTC
[Xapian-discuss] How can I search multiple databases using PHP interface?
Hello, I am new to Xapian, recently installed it with PHP bindings. 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. Does anyone know? Thanks, Oleg
Olly Betts
2006-May-09 14:57 UTC
[Xapian-discuss] How can I search multiple databases using PHP interface?
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