2006/11/27, Joe Shaw <<a href="mailto:joeshaw@novell.com">joeshaw@novell.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;">
Hi,<br><br>On Mon, 2006-11-27 at 20:39 +0100, Jos van den Oever wrote:<br>> I'm fine with an additional query function. I avoided this in the<br>> first place because the return message would become rather big. How<br>
> about:<br>><br>> method queryDetailed ( in s query, in i offset, in i limit , out<br>> a(sa(sas)) hits )<br>> Perform a query and return a list of URIs that match the query.<br>> Input:<br>> query
<br>> The query being performed.<br>> offset<br>> The offset in the result list for the first returned result.<br>> limit<br>> The maximum number of results that should be returned.<br>>
<br>> Output:<br>> hits<br>> A list if URIs with properties that are the result of the query.<br><br>Seems reasonable.</blockquote><div><br><br>Wouldn't returning the full metadata (except snippets) for every single hit be a costly affair? Maybe we need a parameter for which fields to return.
<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;">> How about adding the matching text fragment? This should also be a<br>> a(sas) because the hits may occur in different fields.
<br><br>We use a separate API for text fragments in Beagle because extracting<br>them is extremely slow. I would recommend against it in the query API.</blockquote><div><br>If the queryDetailed method took a list of metadata fields as input "snippet" could be one of them. I still think we should have a separate method for it though.
<br></div><br><br><br>Cheers,<br>Mikkel<br></div>