title: NEST mapping of Dictionary<string,object>
body: <p>Im trying to use NEST and can´t figure out how to use it together with this class</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class Metric {   
      public DateTime Timestamp { get; set; }     
      public Dictionary&lt;string,object&gt; Measurement { get; set; }  
  }
  </code></pre>
  
  <p>How do i use the new fluent mapping with a class like this? </p>
  
  <p>Im planning to use i like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>var mesurements = new Dictionary&lt;string, object&gt;();
  mesurements["visits"] = 1;
  mesurements["url"] = new string[] {"/help", "/about"};
  
  connection.Index(new Metric() {
        Timestamp = DateTime.UtcNow, 
        Measurement = mesurements
  });
  </code></pre>
  
  <p>Will it be possible to write a query against the dictionary? If I wanted to get all Metrics from yesterday with a mesurenemt with a key name "visits", how will that look like ?</p>