Mikkel Kamstrup Erlandsen
Wed, 22 Nov 2006 01:11:59 -0800
2006/11/21, Jos van den Oever <[EMAIL PROTECTED]>:
2006/11/21, Mikkel Kamstrup Erlandsen <[EMAIL PROTECTED]>:
> - add getSnippet (in: s query, in: uris as, out: snippets a{ss})
> Returns a map of uri->snippet, with the snippet containing simple
markup
> to highlight the matching part. The markup should probably be limited to
<b>
> and <i> tags. Only uris actually having a meaning full snippet are
returned.
> Example getSnippet("hello", ["file:///tmp/test.c",
> "file:///tmp/portrait.jpg"]) returns ["
> file:///tmp/test.c"->"...printf("<b>hello</b> world");... "]
This should also allow for highlighting in other fields, notably
filename and title, so:
method getSnippet(in s query, in as uris, out a{sa{sas}})
returning the same type as
method getProperties ( in as files, out a{sa{sas}} properties )
(the wiki has the wrong definition)
Ok, I updated the wiki. With these signatures. I also (tried) to clarify the corresponding return value descriptions. I also made all method capitalized (fx getProperties -> GetProperties) to adopt the convention from the native org.freedesktop.DBus methods.
Another switch for the query language could be "sort:" with some sane > sorting options... Agreed, with score as default. (algorithm for determining score is free)
Added to the list of switches. I made it optional for a start. Cheers, Mikkel
_______________________________________________ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg
- simple search api (was Re: mimetype standardisation by testsets) Jos van den Oever
- Re: simple search api (was Re: mimetype standardisation by testsets) johnflux
- Re: simple search api (was Re: mimetype standardisation by testsets) Jos van den Oever
- Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen
- Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen
Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen
- Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen
- Re: simple search api (was Re: mimetype standardisation by testsets) Jean-Francois Dockes
- Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen
- Re: simple search api (was Re: mimetype standardisation by testsets) Joe Shaw
- Re: simple search api (was Re: mimetype standardisation by testsets) Magnus Bergman
- Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen
- Re: simple search api (was Re: mimetype standardisation by testsets) Fabrice Colin
- Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen
- Re: simple search api (was Re: mimetype standardisation by testsets) Patryk Zawadzki
- Re: simple search api (was Re: mimetype standardisation by testsets) Mikkel Kamstrup Erlandsen