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,