Re: The Google SOAP problem

From: Date: Wed, 17 Apr 2002 08:34:06 +0000
Subject: Re: The Google SOAP problem
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5595@lists.php.net to get a copy of this message
On Wed, 2002-04-17 at 03:57, Alexander Merz wrote: > Any Opinions about this idea? > > Create a interface SEARCH, this interface could implemented by the > google class. > SEARCH could be a gerneral categorie, which covers the typical tasks for > doing a small query and fetching the result. > > Ie. > $search = Search::factory("GoogleSOAP", $googleArgs) ; > $search_result = $search -> query("Alexander Merz", $queryArgs); > while( $search_result->fetch()) { > ... > } > > other implementations could be LDAP or a wrapper for DB. $search_result > could be like DB_Result. > > And we avoid pollution with company-related categories (Google_SOAP) or > having a unspecific cat. like SOAP for any web services. This could be an approach. The important thing is to make it possible to make "search driver" packages. I'll certainly make one for AlltheWeb (with a PHP-powered server). This Search API should not bind itself to SOAP, SOAP is just another RPC mechanism, and it's too slow to be useful in large volume anyway, _especially_ if you do sax-parsing in php with a few hundred function callbacks for every search. - Stig

« previous php.pear.dev (#5595) next »