homepage Welcome to WebmasterWorld Guest from 54.166.173.147
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google News Archive
Forum Library, Charter, Moderator: open

Google News Archive Forum

    
Google Search Question
can results be restricted to two or more domains?
irubin




msg:107116
 8:08 pm on Mar 2, 2003 (gmt 0)

Hello,

Can google results be restricted to results from two or more domains?

Something like:

widget site:www.foo.com site:www.bar.com

Roy

 

RBuzz




msg:107117
 8:32 pm on Mar 2, 2003 (gmt 0)

Sure. Use pipes and parens:

widget (site:foo.com ¦ site:bar.com)

The pipe acts as OR, so what you're saying here is "Find me the keyword widget in pages from foo.com or from bar.com."

Note that you can't use this with the link: syntax, as Google's link: syntax is not mixable.

irubin




msg:107118
 1:48 am on Mar 3, 2003 (gmt 0)

Thanks for your reply.

It hasn't worked for me. The following search:

nasa (site:cnn.com site:abcnews.com)

returns:

Your search - nasa (site:cnn.com site:abcnews.com) - did not match any documents.
No pages were found containing "site:abcnews.com)".

Any ideas?

ikbenhet1




msg:107119
 2:01 am on Mar 3, 2003 (gmt 0)

Try this:

webmaster site:webmasterworld.com OR site:google.com webmaster

I thought this would'nt work because of the OR, but when i tried a search i see both domains in the results.

So, Does it work?

[edited by: ikbenhet1 at 2:11 am (utc) on Mar. 3, 2003]

irubin




msg:107120
 2:11 am on Mar 3, 2003 (gmt 0)

works!

Thanks.

RBuzz




msg:107121
 2:19 am on Mar 3, 2003 (gmt 0)

I just tried nasa (site:cnn.com ¦ site:abcnews.com)
and it worked fine. Maybe you were using the wrong pipe symbol?

2_much




msg:107122
 2:22 am on Mar 3, 2003 (gmt 0)

Weird, neither of those worked for me.

mfagan




msg:107123
 2:23 am on Mar 3, 2003 (gmt 0)

Google doesn't support parenthesis.

Just use searchterms site:site1 site:site2 site:site3

Both "OR" and "" work the same.

RBuzz




msg:107124
 3:45 am on Mar 3, 2003 (gmt 0)

Google does indeed support parens. I'm a little confused as to why these didn't work for some people. Time for some experimenting.....

irubin




msg:107125
 4:45 am on Mar 3, 2003 (gmt 0)

Pasting the query into the google toolbar also distorts the query, so that:

nasa (site:cnn.com site:abcnews.com)

turns into:

site:abcnews.com) nasa (site:cnn.com

Perhaps a bug with the google toolbar?

ikbenhet1




msg:107126
 10:22 am on Mar 3, 2003 (gmt 0)

Try exactly like this:
webmaster site:webmasterworld.com OR site:google.com webmaster (gives 1660 results)

for ex: these 2 DON'T work,:

site:webmasterworld.com OR site:google.com webmaster (gives 0 results)

webmaster site:webmasterworld.com OR site:google.com (gives 0 results)

mfagan




msg:107127
 11:51 am on Mar 3, 2003 (gmt 0)

Google does indeed support parens

That's news to me then. Is there documentation of this somewhere? Search Engine Showdown [searchengineshowdown.com], for instance, says Google doesn't.

Upon trying a few queries, it does seem to work. The typical (word1 word2) (word3 word4) at least appears to work perfectly. How long has this been around for?

Perhaps a bug with the google toolbar?

From my experience, the toolbar rearranges your query to put the
site: first. It doesn't check for another site:, and it separates strings by spaces, which is why the parentheses get moved around.

RBuzz




msg:107128
 5:45 pm on Mar 3, 2003 (gmt 0)

Upon trying a few queries, it does seem to work. The typical (word1 word2) (word3 word4) at least appears to work perfectly. How long has this been around for?
--

Mfagan,

I've been using parens regularly on Google since last summer. I don't know when they started working -- I've never had problems with them. Mind you, I don't do that much nested stuff -- like (foo (otherfoo ¦ bar)) -- but generally just enough to keep my queries neat.

mfagan




msg:107129
 7:40 pm on Mar 3, 2003 (gmt 0)

Okay, I've been trying some more queries.

It seems to me that Google simply ignores the parentheses. For example (foo (bar otherbar)) is the same as foo bar otherbar. Parentheses don't permit any new functionality. Unless I'm mistaken.

RBuzz




msg:107130
 7:49 pm on Mar 3, 2003 (gmt 0)

Entirely possible. I'm using them more for neatness than anything else. I'll try to put some time aside for serious experimenting, but don't have time at the moment...

jatar_k




msg:107131
 7:53 pm on Mar 3, 2003 (gmt 0)

For those of you it doesn't work for, if you are pasting it from this thread you have to replace the ¦ character. The one in the post is not a real one, it is broken.

If I paste and then replace the char all the piped searches work for me. Without replacing none of them work.

robertskelton




msg:107132
 12:46 am on Mar 4, 2003 (gmt 0)

In a quick test, it appears you can limit the search to 9 sites, although it bombs out with 10. To me this is a very simple technique for making some sort of meta-search.

mfagan




msg:107133
 1:00 am on Mar 4, 2003 (gmt 0)

it appears you can limit the search to 9 sites, although it bombs out with 10

Google isn't limiting the number of sites you can search, all queries are limited to ten words. So if you wanted to search for "foo bar" (two words), you could only limit it to eight sites.

a very simple technique for making some sort of meta-search

That's true, I do this frequently. I recally once upon a thread long ago that I mentioned it would be nice if Google could let me store a comma-deliminated list of domains to run selected queries against.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google News Archive
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved