On Fri, Jul 24, 2009 at 12:21:54PM +0100, Roy Walter wrote:
Ying Zhang wrote:
Hello Roy,
On Fri, Jul 24, 2009 at 09:41:45AM +0100, Roy Walter wrote:
Hi
A couple of tijah related issues with query modules.
1. The following query when run from xrpc.html appears to ignore the
Which xrpc.html do you exactly mean? Can you give its URL?
For clarity, are you running the function tijahSearch remotely using the XRPC extension of MonetDB/XQuery?
Regards,
Jennie
$term argument and returns a very large result!
module namespace tj = "tj";
declare function tj:tijahSearch($term as xs:string) as node()* { tijah:queryall("//speech[about(., $term)]") };
2. Running the above query sometimes produces the following error:
!ERROR: interpret: no matching MIL operator to 'tj_query_handler(bit BAT[void BAT], ...
Thanks, Roy
------------------------------------------------------------------------------ _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
OK, it's the file that comes with the distribution, i.e., http://localhost:50001/export/xrpc.html
I am just using the sample page to try out the xrpc functionality, so everything is running locally. The following, related, non tijah query works fine:
module namespace search = "search";
declare function search:simpleSearch($term as xs:string) as node()* { doc("debates2006.xml")//speech[contains(., $term)] };
Hello Roy, Basically, what XRPC does is wrapping the parameter value into a SOAP XRPC message, send the msg to your local Mserver, extra the parameter value, and use MonetDB/XQuery to execute the function. Your problem seems not XRPC related, als simpleSearch function works, i.e., XRPC is able to correct marshal and unmarshal function parameter/results. To check this, you could execute your Tijah query without XRPC, by using e.g., mclient, to see if the problem remains. However, there is one important difference between executing the Tijah query via XRPC and via mclient: XRPC currently only works with the old frontend, executing your tijah function via XRPC is equivalent with executing it with 'mclient -lx -g' (note the extra '-g' option), while mclient by default uses the new algebra frontend. Latest improvements and bugfixes have only be done in the algebra frontend. If you encounter problems when executing tijah queries using the old frontend, it is possible that the problem has already been fixed in the algebra frontend, in this case you should use the (default) algebra frontend. (not XRPC related) Bugs in the old frontend will only be fixed if they also exist in the algebra frontend. Regards, Jennie
Thanks, Roy