Hello On 7/16/07, Mikkel Kamstrup Erlandsen <[EMAIL PROTECTED]> wrote: > Hi again, > > I have a few suggestions for updates to the xesam search spec. > > * API: > Remove the session properties search.blocking and search.live. These seemed > to cause more confusion than I anticipated. These can be emulated in the > client side lib as far as my scribblings can tell. Anoter solution might > just be better documentation of course... > > Some of you now have actual experience with these, what is your feel? > > The reason for having these properties in the first place was to allow > easier usage of the dbus interface directly - ie not via a client lib. > > What this would mean for the api methods: > * GetHits should always block until the requested number of hits has been > found or the entire index has been searched (in which case the SearchDone > signal will be emitted too). > * CountHits should always block until the entire index has been searched > * No other methods should block <snip>
I have no experience with client design, but here's my suggestion: "search.live" should remain, but "search.blocking" should probably be dropped. By definition, a non-live search will cause GetHits() and CountHits() to block till the search is finished. A live search will never block -- both these calls will return with what hits are available. This seems to be a reasonably intuitive model to me. Cheers! -- Arun Raghavan (http://nemesis.accosted.net) v2sw5Chw4+5ln4pr6$OFck2ma4+9u8w3+1!m?l7+9GSCKi056 e6+9i4b8/9HTAen4+5g4/8APa2Xs8r1/2p5-8 hackerkey.com _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
