2007/1/12, Fabrice Colin <<a href="mailto:fabrice.colin@gmail.com">fabrice.colin@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;">
On 1/10/07, Mikkel Kamstrup Erlandsen <<a href="mailto:mikkel.kamstrup@gmail.com">mikkel.kamstrup@gmail.com</a>> wrote:<br>> There has been general good feedback on Magnus proposal, so I updated<br>> the wiki:
<a href="http://wiki.freedesktop.org/wiki/WasabiSearchSimple">http://wiki.freedesktop.org/wiki/WasabiSearchSimple</a><br>><br>A few questions and comments about this :<br><br>- ShowConfiguration<br>> Open a graphical interface for configuring the search tool.
<br>Is it safe to assume that because this method was called on the session bus<br>that a graphical display is available ?</blockquote><div><br>No you can't assume that. We could make the method return a string with an error message. The method would be considered failed if the response != "". Errors could also arise if you don't have the toolkit installed in which the config tool was implemented.
<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;">- Query<br>> Start a new query.<br>I agree with Joe that a method to explicitly release the handle would be good.
</blockquote><div><br>This seems to be a popular request. I'll add it to the wiki. <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;">
- GetHitProperties<br>> URIs and snippets are just properties.<br>That's fine.<br><br>> properties: A list of properties to return. An empty list is a request for all<br>> properties.<br>What properties should be supported by all implementations ? I'd suggest
<br>at least "title", "size", "uri", "mimetype" and "snippet".</blockquote><div><br>Well, without a metadata spec, we can only say - "return everything you got".
<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;">> response: A map mapping object_identifiers to a maps of property-list of<br>
> values pairs.<br>How is the object_identifier useful to the client application considering that<br>it's not required as input by any of the API's methods ?</blockquote><div><br>It could be useful in the metadata spec. We always have to look at the simple api in the context of the live api, and yet-to-come metadata spec+api.
<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;">- concepts<br>> This identifier is a string and will not change if the object is "moved"
<br>> (think: if a file is moved).<br>What if the object no longer matches the query after being moved ? e.g. if<br>the object matched the query because of its name and it was renamed, or if<br>the query included a directory filter and the object was moved to another
<br>directory...</blockquote><div><br>The simple interface is racy in its very nature. You would have yo use the live api to pick up such changes in the result set.<br> </div>Cheers,<br>Mikkel<br></div><br>