title: Dividing counts of two different queries in kibana
body: <p>I am trying to create a lucene expression for displaying division on counts of two queries. Both queries contain textual information and both results are in message field. I am not sure how to write this correctly. So far what i have done is without any luck -</p>
  
  <pre><code>doc['message'].value/doc['message'].value
  </code></pre>
  
  <p>for first query <code>message</code> contain text as - <code>"404 not found"</code></p>
  
  <p>for second query <code>message</code> contain text as - <code>"500 error"</code></p>
  
  <p>what i want to do is <code>count(404 not found)/count(500 error)</code></p>
  
  <p>I would appreciate any help.</p>