title: WordPress REST API Global Search (API V2)
body: <p>I am looking for a way to run a global search query across all or multiple post types using WP REST API.</p>
  
  <p>I am able to search posts using: </p>
  
  <pre><code>http://example.com/wp-json/wp/v2/posts?search=test
  </code></pre>
  
  <p>In turn I am able to search pages using: </p>
  
  <pre><code>http://example.com/wp-json/wp/v2/pages?search=test
  </code></pre>
  
  <p>How do I search across both posts and pages? I was able to do this in WP REST API V1 by specifying multiple <code>type[]</code> variables in the query?</p>