title: How to query the latest date in Solr 7.6? (DatePointField)
body: <p>I am trying to find the document with the latest date in Solr. Is there an efficient way of doing this with the Solr query syntax ?</p>
  <p>For now, I have been reading the <a href="https://lucene.apache.org/solr/guide/7_5/working-with-dates.html" rel="nofollow noreferrer">documentation</a>, but I am only getting <code>&quot;numFound&quot;: 0</code> when I try to query any date in the <code>fq</code> parameter,  even though that date does exist in the document.</p>
  <p>Example query:</p>
  <p>q box:</p>
  <p><code>*:*</code></p>
  <p>fq box:</p>
  <p><code>date_published:&quot;2019-02-28T11:57:29.926Z&quot;</code></p>
  <p>I defined in the schema this field like so:</p>
  <p><code> &lt;field name=&quot;date_published&quot; type=&quot;pdate&quot; indexed=&quot;true&quot; stored=&quot;true&quot; required=&quot;true&quot;/&gt;</code></p>
  <p><code> &lt;fieldType name=&quot;pdate&quot; class=&quot;solr.DatePointField&quot; docValues=&quot;true&quot;/&gt;</code></p>
  <p>The above date does exist with the document, but it shows &quot;numFound&quot;:0. Although this issue is just a first step, I would actually like to find the latest document with the latest date.</p>