title: Elastic search exact match
body: <p>I'm using elasticsearch and am having a devil of a time getting an exact match to happen. I've tried various combinations of match, query_string, etc, and I either get nothing or bad results. 
  Query looks like this: </p>
  
  <pre><code>{
    "filter": {
      "term": {
        "term": "dog",
        "type": "main"
      }
    },
    "query": {
      "match_phrase": {
        "term": "Dog"
      }
    },
    "sort": [
      "_score"
    ]
  }
  </code></pre>
  
  <p>Sorted results</p>
  
  <pre><code>10.102211 {u'term': u'The Dog', u'type': u'main', u'conceptid': 7730506}
  10.102211 {u'term': u'That Dog', u'type': u'main', u'conceptid': 4345664}
  10.102211 {u'term': u'Dog', u'type': u'main', u'conceptid': 144}
  7.147442 {u'term': u'Dog Eat Dog (song)', u'type': u'main', u'conceptid': u'5288184'}
  </code></pre>
  
  <p>I see, of course that "The Dog", "That Dog" and "Dog" all have the same score, but I need to figure out how I can boost the exact match "Dog" in score.</p>
  
  <p>I also tried </p>
  
  <pre><code>{
    "sort": [
      "_score"
    ],
    "query": {
      "bool": {
        "must": [
          {
            "match": {
              "term": "Dog"
            }
          },
          {
            "match_phrase": {
              "term": {
                "query": "Dog",
                "boost": 5
              }
            }
          }
        ]
      }
    },
    "filter": {
      "term": {
        "term": "dog",
        "type": "main"
      }
    }
  }
  </code></pre>
  
  <p>but that still just gives me</p>
  
  <pre><code>11.887239 {u'term': u'The Dog', u'type': u'main', u'conceptid': 7730506}
  11.887239 {u'term': u'That Dog', u'type': u'main', u'conceptid': 4345664}
  11.887239 {u'term': u'Dog', u'type': u'main', u'conceptid': 144}
  8.410372 {u'term': u'Dog Eat Dog (song)', u'type': u'main', u'conceptid': u'5288184'}
  </code></pre>