2006/11/21, Jos van den Oever <<a href="mailto:jvdoever@gmail.com">jvdoever@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2006/11/21, Mikkel Kamstrup Erlandsen <<a href="mailto:mikkel.kamstrup@gmail.com">mikkel.kamstrup@gmail.com</a>>:<br>> - add getSnippet (in: s query, in: uris as, out: snippets a{ss})<br>> Returns a map of uri->snippet, with the snippet containing simple markup
<br>> to highlight the matching part. The markup should probably be limited to <b><br>> and <i> tags. Only uris actually having a meaning full snippet are returned.<br>> Example getSnippet("hello", ["
<a href="file:///tmp/test.c">file:///tmp/test.c</a>",<br>> "<a href="file:///tmp/portrait.jpg">file:///tmp/portrait.jpg</a>"]) returns ["<br>> <a href="file:///tmp/test.c">file:///tmp/test.c</a>"->"...printf("<b>hello</b> world");... "]
<br>This should also allow for highlighting in other fields, notably<br>filename and title, so:<br> method getSnippet(in s query, in as uris, out a{sa{sas}})<br>returning the same type as<br> method getProperties ( in as files, out a{sa{sas}} properties )
<br>(the wiki has the wrong definition)<br></blockquote><div><br>Ok, I updated the wiki. With these signatures. I also (tried) to clarify the corresponding return value descriptions.<br><br>I also made all method capitalized (fx getProperties -> GetProperties) to adopt the convention from the native
org.freedesktop.DBus methods.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Another switch for the query language could be "sort:" with some sane
<br>> sorting options...<br>Agreed, with score as default. (algorithm for determining score is free)</blockquote><div><br>Added to the list of switches. I made it optional for a start. <br></div></div><br>Cheers,<br>Mikkel
<br>