title: Update the score of Pinned Documents in Elastic Search
body: <p>I have a requirement to show some documents always on top of search results and for that, I have used pinned query to pin some documents and the pinned documents will have a score value of 1.7014122E38.</p>
  <p>But I have another requirement to modify this score of pinned documents which I'm unable to achieve at the query level.</p>
  <p>Sample Documents</p>
  <pre><code>  &quot;docs&quot;: [
      {
        &quot;_id&quot;: 1,
        &quot;name&quot;: &quot;jack&quot;
      },
      {
        &quot;_id&quot;: 2,
        &quot;name&quot;: &quot;ryan&quot;
      },
      {
        &quot;_id&quot;: 3,
        &quot;name&quot;: &quot;mark&quot;
      },
      {
        &quot;_id&quot;: 4,
        &quot;name&quot;: &quot;taylor&quot;
      },
      {
        &quot;_id&quot;: 5,
        &quot;name&quot;: &quot;taylor&quot;
      }
    ]
  }
  </code></pre>
  <p>ES Query</p>
  <pre><code>{
    &quot;query&quot;: {
      &quot;bool&quot;: {
        &quot;should&quot;: [
          {
            &quot;pinned&quot;: {
              &quot;ids&quot;: [
                &quot;3&quot;
              ],
              &quot;organic&quot;: {
                &quot;query&quot;: {
                  &quot;bool&quot;: {
                    &quot;must&quot;: [
                      {
                        &quot;multi_match&quot;: {
                          &quot;name&quot;: &quot;taylor&quot;,
                          &quot;fields&quot;: [
                            &quot;name&quot;
                          ]
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        ]
      }
    }
  }
  </code></pre>
  <p>Now I want to multiply the pinned document score weight with some value which I'm unable to achieve in ES.</p>
  <p>Can someone please help me to solve this requirement?</p>