7 messages in com.googlegroups.google-desktop-developerRe: Getting 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:Re: Getting snippets from the Query API
From:Rob C (robc@gmail.com)
Date:04/19/2006 03:57:01 PM
List:com.googlegroups.google-desktop-developer

Sridhar,

The documented list is indeed easy to find however there is nothing similar to a "snippet" or "summary" that includes a few words of the matching content. It's clear from using Google Desktop with Outlook and in the browser that there must be some undocumented attribute we can use to get to these snippets.

Others have already noted that "content" and "summary" aren't what we're after. Do you know what attribute we should use?

Sridhar Gurivireddy wrote:

It's very easy to find which properties are available and which are not. If you use the Query API (using GoogleDesktop.QueryAPI), then for each metadata (Google.Desktop.File, Google.Desktop.IM and so on) defined in indexAPI documentation, you would always have "required" attributes set. For the attributes that are optional, they might (or) might not be set.

You should write an exception handler around the code which tries to access the optional attributes, as you get jscript exception on reading a unset property on a event.