title: Match query issues after upgrading ES1.7->2.4 and NEST 1.x->2.x
body: <p>I upgraded to NEST 2.x from NEST 1.x and have been having trouble performing very basic searches.  </p>
  
  <p>This is my query which used to work on ES 1.7  </p>
  
  <pre><code>{
    "from": 0,
    "size": 100,
    "sort": [
      {
        "_score": {
          "order": "desc"
        }
      }
    ],
    "query": {
      "match": {
        "customer.companyId": {
          "query": "1"
        }
      }
    }
  }
  </code></pre>
  
  <p>and here is how I need to change it to make it work in ES 2.4.  </p>
  
  <pre><code>{
    "from": 0,
    "size": 100,
    "sort": [
      {
        "_score": {
          "order": "desc"
        }
      }
    ],
    "query": {
      "match": {
        "companyId": {
          "query": "1"
        }
      }
    }
  }
  </code></pre>
  
  <p>Reference:  <a href="https://www.elastic.co/guide/en/elasticsearch/guide/current/match-query.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/guide/current/match-query.html</a>  </p>
  
  <p>I'm not sure if it's ES or NEST that's being picky. Is this the new rule with ES 2.x that we don't include the full object path only field names and ES will figure out to what object that field name belongs?</p>
  
  <p>What if 2 documents have a field with the same name - how can I narrow the search to 1 document type only?</p>
  
  <p>With NEST I create the query the following way:</p>
  
  <pre><code> query = new MatchQuery()
                  {
                      Field = Field.Create("customer.companyId"),
                      Query = queryValue,
                      Fuzziness = Fuzziness.EditDistance(fuzziness),
                      Operator = logicalOperator
                  };
  </code></pre>
  
  <p>This page shows another way to create the Field<br>
  <a href="https://www.elastic.co/guide/en/elasticsearch/client/net-api/2.x/match-usage.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/client/net-api/2.x/match-usage.html</a></p>
  
  <pre><code>query = new MatchQuery()
              {
                  Field = Field&lt;Customer&gt;(p =&gt; p.companyId),
                  Query = queryValue,
                  Fuzziness = Fuzziness.EditDistance(fuzziness),
                  Operator = logicalOperator
              };
  </code></pre>
  
  <p>Unfortunately <code>Field&lt;Customer&gt;(p =&gt; p.companyId),</code> doesn't compile!!!</p>