2007/1/17, Jamie McCracken &lt;<a href="mailto:jamiemcc@blueyonder.co.uk">jamiemcc@blueyonder.co.uk</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;">
Mikkel Kamstrup Erlandsen wrote:<br>&gt; Proposed Updates for the Simple API:<br>&gt; --------------------------------------------------------------<br>&gt;<br>&gt;&nbsp;&nbsp;- Change GetHitProperties (in s query_handle, in i offset, in i limit,
<br>&gt; in as props, out a{sa{sas}}) to GetHits(in s query_handle, int i offset,<br>&gt; int i limit, in as props, out aas) where the output is on the form<br>&gt; [[HitId, props in rq. order], [HitId, props in rq. order], ...]. This
<br>&gt; seemed to be the consensus of the recent discussions.<br><br>&quot;aav&quot; would be better than &quot;aas&quot; as some metadata will have muliple<br>values (email:to, email:cc etc)</blockquote><div><br><br>Whether or not to use a variant is a tricky question. I would prefer using a return value like &quot;aaas&quot; in all cases instead. I have no arguments except gut feeling though. Variants would allow for values like file:size to be returned as integers though. This logic might equally well be pushed to the toolkit bindings instead though.
<br><br>What do you guys think?<br></div><br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Although our rdf query output has moved from &quot;a{ss}&quot; to &quot;aas&quot; in the
<br>past, we will be shortly going to &quot;aav&quot; to handle the above cases better.<br><br><br>&gt;<br>&gt; Stuff to Think About:<br>&gt; ---------------------------------------------------<br>&gt;&nbsp;&nbsp;- Ordering : Is it fair to expect ordered results from the indexer at
<br>&gt; all? From the new return type of of GetHits I would assume that the<br>&gt; result set was ordered. This may be fine in the simple api, but if we<br>&gt; want to use the same&nbsp;&nbsp;data structures in the live api it is beginning to
<br>&gt; look weird. Hits with a really high score might be added after all hits<br>&gt; have otherwise been retrieved. Also in the new query xml language you<br>&gt; can actually specify an ordering (and grouping) - does this make sense
<br>&gt; at all?<br><br>we can ignore the hit score race condition.&nbsp;<br></blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The sort order should always include rank. If a result was asked to be
<br>ordered by say File:Size then the result set should be ordered by<br>File:Size and then rank (so files with the same size will be ordered by<br>rank). Of ocurse if no order by is specified then rank alone should be used
</blockquote><div><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt;<br>&gt;&nbsp;&nbsp;- Moving ShowConfiguration() to<br>&gt; org.freedesktop.search.ui.ShowConfiguration
()? A drawback is that we<br>&gt; can&#39;t guarantee that search.simple and search.ui is owned by the same<br>&gt; d-bus services. If we had a search.ui we could also add a<br>&gt; search.ui.ShowSearchTool(in s search_string).
<br><br>a separate ui interface might be more apt</blockquote><div><br>Ok. SP how about a search.ui interface with the methods:<br><br>&nbsp;- ShowConfiguration (in s toolkit_hint, out s error_msg)<br>toolkit_hit is a string to hint which toolkit to use. &quot;gtk&quot;, &quot;qt&quot;, &quot;fox&quot;, &quot;fltk&quot;, &quot;cocoa&quot;. If error_msg!=&quot;&quot; an error occured.
<br><br>- ShowSearchTool (in s default_search_string, in s toolkit_hint, out s error_message)<br>default_search_string is a string to set in the ui when it is spawned<br></div><br>Cheers,<br>Mikkel<br><br></div><br>