2007/9/28, Arun Raghavan &lt;<a href="mailto:arunisgod@gmail.com">arunisgod@gmail.com</a>&gt;:<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;">
Hello,<br>Sorry about the delated response.<br><br>On 9/26/07, Mikkel Kamstrup Erlandsen &lt;<a href="mailto:mikkel.kamstrup@gmail.com">mikkel.kamstrup@gmail.com</a>&gt; wrote:<br>&gt; This will be the last batch of changes before we call RC1 (modulo upcoming
<br>&gt; ontology update). As usual you can find the proposed items on<br>&gt; <a href="http://wiki.freedesktop.org/wiki/XesamSearchUpdates">http://wiki.freedesktop.org/wiki/XesamSearchUpdates</a>. There<br>&gt; are some pretty central items in there. Highlights include:
<br>&gt;<br>&gt;&nbsp;&nbsp;* Error/Exception handling<br>&gt;&nbsp;&nbsp; * GetHits/GetHitData return type<br><br>Just to have this explicit, the only way the server is going to know<br>what type to return for a given field is is to know the whole metadata
<br>spec, right? Do we need to account for that fact that the server might<br>not even know what the expected type for a field is?</blockquote><div><br>Yes, as it stands, the server has to know the entire ontology to be able to know the correct types to return.
<br><br>The server should always be able to know the types for each field since custom extensions should also have their ontologies properly installed in a place where the server can pick them up.<br><br>If I am not mistaken Jamie has been requesting that it should always be allowed to return a string instead of the actual data type (and let the client do the conversion as it sees fit). I&#39;m not sure where I stand on this. It should not be hard to wrap nicely in a client lib anyway. My plan was for xesam-glib to have a hit api like:
<br><br>Hit.get_string(String fieldname)<br>.get_integer ()<br>.get_boolean ()<br>.get_date ()<br><br>- and use the g_valu_transform API to do type mappings as necessary. This way it will not matter much where the type-detection logic is (for users of xesam-glib).
<br><br>Any opinions are mostly welcome. While this subject has seen quite some debate on IRC, it can certainly always use more, it is quite central to the spec.<br><br>Cheers,<br>Mikkel<br></div><br></div>