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.
Thanks for your reply.
It hasn't worked for me. The following search:
nasa (site:cnn.com ¦ site:abcnews.com)
Your search - nasa (site:cnn.com ¦ site:abcnews.com) - did not match any documents.
No pages were found containing "site:abcnews.com)".
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]
I just tried nasa (site:cnn.com ¦ site:abcnews.com)
and it worked fine. Maybe you were using the wrong pipe symbol?
Weird, neither of those worked for me.
Google doesn't support parenthesis.
searchterms site:site1 ¦ site:site2 ¦ site:site3
Both "OR" and "¦" work the same.
Google does indeed support parens. I'm a little confused as to why these didn't work for some people. Time for some experimenting.....
Pasting the query into the google toolbar also distorts the query, so that:
nasa (site:cnn.com ¦ site:abcnews.com)
site:abcnews.com) nasa (site:cnn.com ¦
Perhaps a bug with the google toolbar?
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)
|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.
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?
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.
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.
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...
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.
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.
|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.