7 messages in com.googlegroups.google-desktop-developerGetting snippets from the Query API
FromSent OnAttachments
Michael17 Apr 2006 11:19 
Sridhar Gurivireddy17 Apr 2006 12:24 
Oleksandr Yakovlyev18 Apr 2006 05:55 
psussan18 Apr 2006 10:57 
Sridhar Gurivireddy18 Apr 2006 14:30 
Sridhar Gurivireddy18 Apr 2006 16:04 
Rob C19 Apr 2006 15:57 
Subject:Getting snippets from the Query API
From:Michael (mich@gmail.com)
Date:04/17/2006 11:19:33 AM
List:com.googlegroups.google-desktop-developer

I'm writing a simple javascript to run searches through the Query API. The example provided, simple_query.js, shows how to run a search and get a list of files back. All I want is to augment that list with the little snippets of text that usually accompany google searches that show why a given file was returned.

However, the documentation is sparse in this area and confusing. For example, at one point we're told that the properties "you'll probably use most often are content, uri, summary, and for email from, to, and subject." But then the "complete property set" doesn't list "summary" at all.

And in any event, trying

message(item("summary"));

errors with "No such property name -2147221500".

It probably goes without saying that my shot-in-the-dark (item("snippet")); didn't work either.

I figure there must be a simple way to get the snippet accompanying a search. I just need a pointer in the right direction.

Thanks in advance,