How to have multiple sites on drupal 7?

How to search multiple (specified) sites in one query?

  • I want to issue a single search engine query that limits itself to a list of say ten to twenty specified domains. How? Google, for example, allows a single site:blah.com query term that restricts to blah.com, but what if I need to to search for say, for the term widget, at all of the sites in the list blah.com, blag.org, blahblah.edu, etc? I could issue multiple queries, but I want a single homogenized list of results... Best marks will go to the query that can be used in an OpenSearch descriptor, or to a way of setting an OpenSearch descriptor to search several sites.

  • Answer:

    Is there a reason the http://www.google.com/cse/ won't suit your needs? I think this is sort of the standard way to set this up.

blue_wardrobe at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

With google you can do this with -inurl: your search string -inurl:(domain1|domain2|domain3) I don't think opensearch has an equivalent

Lanark

Another way of writing what Lanark said:searchterms moresearchterms site:domain1.com | site:domain2.com | site:domain3.comThe pipe character (|) represents OR in boolean logic. It's a good way to limit a search to a handful of sites but more than five or six would be pretty cumbersome.

The Winsome Parker Lewis

http://rollyo.com/createroll.html is built for your specific purpose. They call them Searchrolls.

brock

Actually that should be your search string inurl:(domain1|domain2|domain3) inurl will restrict search to urls that contain those strings -inurl will restrict search to urls that don't contain those strings e.g. beatles -inurl:(wikipedia|amazon)

Lanark

To do this on Bing would use searchstring (site:foo.com OR site:bar.com) The opensearch descriptor URL template would just have something like template="http://bing.com/search?q={searchstring}+%28site%3Afoo.com+OR+site%3Abar.com%29"

Diddly

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.