title: How to search across multiple sites using google search?
body: <p>Given this URL, I can do a site search across the site specified in the query string, on Google:</p>
  
  <pre><code>https://www.google.com/search?q=something&amp;sitesearch=subdomain1.site-abc.com
  </code></pre>
  
  <p>This results in the following formatted string in the Google search text box:</p>
  
  <pre><code>something site:subdomain1.site-abc.com
  </code></pre>
  
  <p>I can also easily write a simple html form for this, like so:</p>
  
  <pre><code>&lt;form method="get" action="https://www.google.com/search" target="_blank"&gt;
      &lt;input type="text"   name="q" size="31" maxlength="255" value="Keyword" /&gt;
      &lt;input type="submit" value="Google Search" class="button1" /&gt;
      &lt;input type="radio"  name="sitesearch" value="subdomain1.site-abc.com" checked="checked" /&gt; Search subdomain1.site-abc.com on Google&lt;br /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now, if I want to search across multiple sites, I can do that on Google using either of these queries in the search text box:</p>
  
  <pre><code>1. something site:subdomain1.site-abc.com OR subdomain2.site-abc.com
  2. something site:subdomain1.site-abc.com || subdomain2.site-abc.com
  3. something site:subdomain1.site-abc.com | subdomain2.site-abc.com
  </code></pre>
  
  <p>My question is, what should the query string in the URL look like, to get one of the above results in the Google search text box?</p>
  
  <p>I tried these things but they do not work:</p>
  
  <pre><code>https://www.google.com/search?q=something&amp;sitesearch=subdomain1.site-abc.com%2B||%2Bsubdomain2.site-abc.com
  
  https://www.google.com/search?q=something&amp;sitesearch=subdomain1.site-abc.com%20||%20subdomain2.site-abc.com
  </code></pre>
  
  <p>First URL results in this:</p>
  
  <pre><code>something site:subdomain1.site-abc.com+||+subdomain2.site-abc.com
  </code></pre>
  
  <p>The second URL results in this:</p>
  
  <pre><code>something site:subdomain1.site-abc.com%20||%20subdomain2.site-abc.com
  </code></pre>
  
  <p>Any suggestions?</p>