Can I search Groups?

1 view
Skip to first unread message

Daivd

unread,
Nov 3, 2009, 11:03:28 AM11/3/09
to Google AJAX APIs
The AJAX API has support for blogs, news, web, etc, but I would like
to search forums just like under the "Groups"-tab, http://groups.google.com.
Can this be done? It turns out that it is hard to google for this
question, since e.g "AJAX search API Google Groups" finds everything
on Google Groups about searching :).

I do not want to search just Google Groups, but all groups included in
the standard Groups-search, so a site filter is not what I am looking
for.

Jeremy Geerdes

unread,
Nov 3, 2009, 12:28:00 PM11/3/09
to google-ajax...@googlegroups.com
Actually, I think that you are looking for a site restriction. You can
use a WebSearcher with its .setSiteRestriction() method to restrict
your search to a certain group or to all groups, depending on how you
do it. For instance, you could do something like this:

var searcher = new google.search.WebSearch();
searcher.setSiteRestriction('http://groups.google.com/group/Google-AJAX-Search-API')
;
searcher.execute('hello, world');

This would search just the AJAX APIs group for 'hello, world.'

Or you could do...

searcher.setSiteRestriction('http://groups.google.com');

This would search all the groups.

Hope that helps.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com

Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!

Daivd

unread,
Nov 4, 2009, 4:30:59 AM11/4/09
to Google AJAX APIs
Thanks, but I do not want to search just groups.google.com. The
"Groups search" searches many, many other sites as well. Check it out
for yourself.

On Nov 3, 6:28 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Actually, I think that you are looking for a site restriction. You can  
> use a WebSearcher with its .setSiteRestriction() method to restrict  
> your search to a certain group or to all groups, depending on how you  
> do it. For instance, you could do something like this:
>
> var searcher = new google.search.WebSearch();
> searcher.setSiteRestriction('http://groups.google.com/group/Google-AJAX-Search-API')
> ;
> searcher.execute('hello, world');
>
> This would search just the AJAX APIs group for 'hello, world.'
>
> Or you could do...
>
> searcher.setSiteRestriction('http://groups.google.com');
>
> This would search all the groups.
>
> Hope that helps.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> Unless otherwise noted, any price quotes contained within this  
> communication are given in US dollars.
>
> If you're in the Des Moines, IA, area, check out Debra Heights  
> Wesleyan Church!
>
> And check out my blog, Adventures in Web Development, athttp://jgeerdes.blogspot.com
>   !
>
> On Nov 3, 2009, at 10:03 AM, Daivd wrote:
>
>
>
>
>
> > The AJAX API has support for blogs, news, web, etc, but I would like
> > to search forums just like under the "Groups"-tab,http://groups.google.com

Jack in Lost

unread,
Nov 10, 2009, 2:23:08 PM11/10/09
to Google AJAX APIs
I have the same question

Any ajax api for group search.

Same as david, I don't want to search just groups.google.com, I want
to search other groups, forums, etc.

Will Google do this?

Thanks

On Nov 4, 9:30 am, Daivd <david.fendr...@gmail.com> wrote:
> Thanks, but I do not want tosearchjust groups.google.com. The
> "Groupssearch" searches many, many other sites as well. Check it out
> for yourself.
>
> On Nov 3, 6:28 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>
>
>
> > Actually, I think that you are looking for a site restriction. You can  
> > use a WebSearcher with its .setSiteRestriction() method to restrict  
> > yoursearchto a certaingroupor to all groups, depending on how you  
> > do it. For instance, you could do something like this:
>
> > var searcher = new google.search.WebSearch();
> > searcher.setSiteRestriction('http://groups.google.com/group/Google-AJAX-Search-API')
> > ;
> > searcher.execute('hello, world');
>
> > This wouldsearchjust the AJAX APIsgroupfor 'hello, world.'
>
> > Or you could do...
>
> > searcher.setSiteRestriction('http://groups.google.com');
>
> > This wouldsearchall the groups.
>
> > Hope that helps.
>
> > Jeremy R. Geerdes
> > Effective website design & development
> > Des Moines, IA
>
> > For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgee...
> > jgeer...@mchsi.com
>
> > Unless otherwise noted, any price quotes contained within this  
> > communication are given in US dollars.
>
> > If you're in the Des Moines, IA, area, check out Debra Heights  
> > Wesleyan Church!
>
> > And check out my blog, Adventures in Web Development, athttp://jgeerdes.blogspot.com
> >   !
>
> > On Nov 3, 2009, at 10:03 AM, Daivd wrote:
>
> > > The AJAX API has support for blogs, news, web, etc, but I would like
> > > tosearchforums just like under the "Groups"-tab,http://groups.google.com
> > > .
> > > Can this be done? It turns out that it is hard to google for this
> > > question, since e.g "AJAXsearchAPI Google Groups" finds everything
> > > on Google Groups about searching :).
>
> > > I do not want tosearchjust Google Groups, but all groups included in
Reply all
Reply to author
Forward
0 new messages