homepage Welcome to WebmasterWorld Guest from 54.144.251.157
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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 2:11 am on Mar 3, 2003 (gmt 0)

works!

Thanks.

RBuzz

10+ Year Member



 
Msg#: 9811 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 9811 posted 2:22 am on Mar 3, 2003 (gmt 0)

Weird, neither of those worked for me.

mfagan

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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

10+ Year Member



 
Msg#: 9811 posted 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