WasabiSearchSimple

Simple DBUS Search Interface

<!> <!> <!> : This page is deprecated. See WasabiSearchLive

<!> This page is only a draft, it is not a final specification.

This page is a part of the unified Wasabi specification. For a more advanced interface see WasabiSearchLive. Theres also a proposal for showing relevant dialogs at WasabiUI.

This page was originally a part of the WasabiDraft page.

The purpose of this interface specification is to provide a simple DBUS API for applications where searching is limited to text entry with only little if any means to modify the query beyond what is entered in the entry. The API must be simple and easy to use for end user-application developers. It is designed to be used directly without any native toolkit wrappers (think a Clinet object in QT/GObject).

There still need to be consensus on a shared query language. Drafting is going on at WasabiQueryLanguage.

Simple Search API

Query ( in s query_string, out s query_handle )

CountHits ( in s query_handle , out i count )

GetHitProperties ( in s query_handle, in i offset, in i limit, in as properties, out a{sa{sas}} response )

Close ( in s query_handle )

DEPRECATED org.freedesktop.search.simple

This section is here for historical reasons only

ShowConfiguration ( )

CountHits ( in s query , out i count )

Query ( in s query, in i offset, in i limit , out as hits )

GetProperties ( in as uris, in as properties, out a{sa{sas}} response )

GetSnippets (in s query, in as uris, in as properties, out a{sa{sas}} response)

FabriceColin: since CountHits and GetSnippets involve a query, how about merging both with Query, so that the latter also returns count and a list of snippets ?

FabriceColin: The description for CountHits should read "Count the number of files that match a particular query", shouldn't it ?

JamesLivingston: Would it be useful for GetProperties to take an (optional) list of properties to get (returning them all if the list is empty)? If you want only one property for a large number of files, it could potentially save a fair bit of work for the backend gathering it all and marshalling it over dbus.

* JosvandenOever: I changed 'files' to 'URIs' in a few places. Also I added a parameter 'properties' to the getSnippets function, because just as for the getProperties call you'll want to avoid working for all properties when you are only interested in a few of them. I'm a bit ambivalent about the getSnippets function. It's something for which you dont really need to communicate with the server with. You could just let the client do the highlighting.