[Xapian-discuss] Querying with PHP4 bindings
Sharjeel Ahmed Qureshi
sharjeel.ahmed at vahzay.com
Thu Nov 23 15:53:57 GMT 2006
Hello,
I am new to Xapian and just started playing with it a couple of days
ago. I successfully installed v0.9.9 on my Slackware 11.0 linux box. I
made a few indexing and searching programs in C++ and found the library
pretty easy to use I also needed to give my app a PHP based frontend for
sturggling so after struggling a little bit I was able to install the
PHP4 bindings. There were initialy small problems using it as the
example shipped with the source didn't work. I read the email archives
of this list to find out that the interfaces have now been changed.
After some hit & trial I was able to create a db connection. However I
am still facing problem instantiating a query object. when I write the
code "$query = new XapianQuery()", PHP politely accepts it. However if I
try to pass any parameter to the constructor, the following error occurs:
"PHP Fatal Error: No matching function for overloaded 'new_XapianQuery'
in <filename>.php on line xxx".
I thought that maybe the constructor does not accept any parameter and I
have to pass on the keywords through some other methods but the only
methods (which I figured out using PHP's get_class_methods() function)
of XapianQuery class are:
xapianquery
get_lenth
get_terms_begin
empty
is_empty
get_description
There doesn't seem to be any method for providing search keywords to the
query object.
It'll be kind of you if you tell me how to put in the kewords in a
XapianQuery object in PHP4 bindings.
Thanks,
Sharjeel
More information about the Xapian-discuss
mailing list