title: how do elastic search show all the hits for query
body: <p>i want the result of the Query show all the information , i am now doing the query in Postman and eventually i will do it for python script,</p>
  <p>I have check somewhere in stackoverflow
  i should do</p>
  <pre><code>{
    &quot;query&quot;: {
        &quot;match_all&quot;:{}
    }
  }
  </code></pre>
  <p>and the results show the hits with</p>
  <pre><code>&quot;hits&quot;: {
          &quot;total&quot;: {
              &quot;value&quot;: 10000,
              &quot;relation&quot;: &quot;gte&quot;
          },
  </code></pre>
  <p>and the following only show few records.</p>
  <p>And this is the same to my case , i want to shortlst all the device that have alarmstatus not equal to 0</p>
  <pre><code>{
    &quot;query&quot;: {
      &quot;bool&quot;: {
        &quot;must_not&quot;: {
          &quot;term&quot;: {
            &quot;header.alarmStatus&quot;: 0
          }
        }
      }
    }
  }
  </code></pre>
  <p>and the result show</p>
  <pre><code>&quot;hits&quot;: {
          &quot;total&quot;: {
              &quot;value&quot;: 10000,
              &quot;relation&quot;: &quot;eq&quot;
          },
          &quot;max_score&quot;: 0.0,
          &quot;hits&quot;: [
              {..........}
  </code></pre>
  <p>which have 3740 hit.
  I want to sort out all 3740 doc , how can i do this?
  Thanks</p>
  <p>Jeff</p>