Welcome to WebmasterWorld Guest from 54.162.239.134

Forum Moderators: open

Message Too Old, No Replies

Google Search Question

can results be restricted to two or more domains?

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

10+ Year Member



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

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

10+ Year Member



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.

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

10+ Year Member



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?

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

10+ Year Member



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]

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

10+ Year Member



works!

Thanks.

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

10+ Year Member



I just tried nasa (site:cnn.com ¦ site:abcnews.com)
and it worked fine. Maybe you were using the wrong pipe symbol?
2:22 am on Mar 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Weird, neither of those worked for me.
2:23 am on Mar 3, 2003 (gmt 0)

10+ Year Member



Google doesn't support parenthesis.

Just use

searchterms site:site1  site:site2  site:site3

Both "OR" and "" work the same.

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

10+ Year Member



Google does indeed support parens. I'm a little confused as to why these didn't work for some people. Time for some experimenting.....
4:45 am on Mar 3, 2003 (gmt 0)

10+ Year Member



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?

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

10+ Year Member



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)

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

10+ Year Member



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.
5:45 pm on Mar 3, 2003 (gmt 0)

10+ Year Member



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.

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

10+ Year Member



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.
7:49 pm on Mar 3, 2003 (gmt 0)

10+ Year Member



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...
7:53 pm on Mar 3, 2003 (gmt 0)

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



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.

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

10+ Year Member



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.
1:00 am on Mar 4, 2003 (gmt 0)

10+ Year Member



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month