title: Search in two different types with different mappings in Elasticsearch
body: <p>Having the following mapping of the index <code>tester</code> with two types <code>items</code> and <code>items_two</code>:</p>
  
  <pre><code>curl -XPUT 'localhost:9200/tester?pretty=true' -d '{
    "mappings": {
        "items": {
           "properties" : {
             "body" : { "type": "string" }
  }},
        "items_two": {
           "properties" : {
             "body" : { "type": "string" },
             "publised" : { "type": "integer"}
  }}}}'
  </code></pre>
  
  <p>I put three elements on it.</p>
  
  <pre><code>curl -XPUT 'localhost:9200/tester/items/1?pretty=true' -d '{
       "body" : "Hey there im reading a book"
  }'
  
  curl -XPUT 'localhost:9200/tester/items_two/1?pretty=true' -d '{
       "body" : "I love the new book of my brother",
       "publised" : 0
  }'
  
  curl -XPUT 'localhost:9200/tester/items_two/2?pretty=true' -d '{
       "body" : "Stephen kings book is very nice",
       "publised" : 1
  }'
  </code></pre>
  
  <p>I need to make a query that matches the word <code>book</code> and has <code>published = 1</code> AND the ones that has not <code>published</code> on the mapping, but has <code>book</code> on it (as the only item of <code>items</code>).</p>
  
  <p>With the following query I only get match with the <code>"Stephen kings book is very nice"</code> item (obviously).</p>
  
  <pre><code>curl -XGET 'localhost:9200/tester/_search?pretty=true' -d '{
  "query": {
   "bool": {
        "must": [
        {
              "match": { "body": "book" }
        },
        {
              "match": { "publised": "1" }
        }]
  }}}'
  </code></pre>
  
  <p>My desired output if I search for the string <code>book</code> should match item #1 from the type <code>items</code> (<code>"Hey there im reading a book"</code>) and <code>item</code> #2 from the type <code>items_two</code> (<code>"Stephen kings book is very nice"</code>).</p>
  
  <p><strong>I don't want to change the mapping or anything else</strong>, I need to archieve this via one query, so how can I build my query?</p>
  
  <p>Thanks in advance.</p>