title: Sort result on elasticSearch by field weight AND a date
body: <p>I use elasticsearch to return article who contains a certains words in some fields. I have weighted those field in order to have the most &quot;important&quot; field matching comming first.</p>
  <p>Now I have to , in case of equity, sort the equivalent hit according to some date field.</p>
  <p>How can I do it?</p>
  <p>my query:</p>
  <pre><code>  &quot;bool&quot; : {
      &quot;must&quot; : [
        {
          &quot;query_string&quot; : {
            &quot;query&quot; : &quot;some text in the fields&quot;,
            &quot;fields&quot; : [
              &quot;unimportantField^1.0&quot;,
              &quot;anotherField^3.0&quot;,
              &quot;mainField^4.0&quot;
            ],
            &quot;type&quot; : &quot;best_fields&quot;,
            &quot;default_operator&quot; : &quot;or&quot;,
          ...
          }
        },
        {
          &quot;match&quot; : {
       ...
          }
        }
      ],
      &quot;adjust_pure_negative&quot; : true,
      &quot;boost&quot; : 1.0
    }
  }
  </code></pre>