title: elasticsearch exclude results with value
body: <p>How can i perform a search excluding results where a field has a specific value?</p>
  
  <p>I have a database of Reddit comments and i want to find Bitcoin mentions, but exclude the bitcoin subreddit.</p>
  
  <pre><code>curl -s -XGET 'http://localhost:9200/_search?pretty=true&amp;size=100' -d '
  {
      "filtered": {
          "query" : {
              "match": {
                  "body": "bitcoin"
              }
          },
          "filter": {
              "not": {
                  "term": {
                      "subreddit": "bitcoin"
                  }
              }
          }
  
      }
  }'
  </code></pre>
  
  <p>The error is to long to post here. <a href="https://gist.github.com/kylelk/feca416156712eebad3e" rel="noreferrer">https://gist.github.com/kylelk/feca416156712eebad3e</a></p>