title: Elasticsearch dynamic choose query
body: <p>When querying with the should command, I am wondering if there is a way to make only the responses of queries with higher scores come out.</p>
  <p>I'm sorry I'm not good at English, please understand it.
  Let's assume I have such data</p>
  <h3>index</h3>
  <pre><code>{
    &quot;mappings&quot;: {
      &quot;properties&quot;: {
        &quot;name&quot;: {
          &quot;type&quot;: &quot;keyword&quot;
        }
      }
    }
  }
  </code></pre>
  <h3>data</h3>
  <pre><code>{
    &quot;_index&quot; : &quot;dismisstest&quot;,
    &quot;_type&quot; : &quot;_doc&quot;,
    &quot;_id&quot; : &quot;1&quot;,
    &quot;_score&quot; : 1.0,
    &quot;_source&quot; : {
      &quot;name&quot; : &quot;chul&quot;
    }
  },
  {
    &quot;_index&quot; : &quot;dismisstest&quot;,
    &quot;_type&quot; : &quot;_doc&quot;,
    &quot;_id&quot; : &quot;2&quot;,
    &quot;_score&quot; : 1.0,
    &quot;_source&quot; : {
      &quot;name&quot; : &quot;wedul&quot;
    }
  }
  </code></pre>
  <h3>query (example..)</h3>
  <pre><code>GET dismisstest/_search
  {
    &quot;query&quot;: {
      &quot;bool&quot;: {
        &quot;should&quot;: [
          {
            &quot;term&quot;: {
              &quot;name&quot;: {
                &quot;value&quot;: &quot;wedul&quot;,
                &quot;boost&quot;: 2
              }
            }
          },
          {
            &quot;term&quot;: {
              &quot;name&quot;: {
                &quot;value&quot;: &quot;chul&quot;,
                &quot;boost&quot;: 4
              }
            }
          }
        ]
      }
    }
  }
  </code></pre>
  <h3>want result (Document using only wedul query)</h3>
  <pre><code>{
    &quot;_index&quot; : &quot;dismisstest&quot;,
    &quot;_type&quot; : &quot;_doc&quot;,
    &quot;_id&quot; : &quot;2&quot;,
    &quot;_score&quot; : 1.0,
    &quot;_source&quot; : {
      &quot;name&quot; : &quot;wedul&quot;
    }
  }
  </code></pre>
  <p>The above query is a simple example, but I want to use only the query that returns the document with a high score among the two should queries. Is there any possible way??</p>