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 ?
For now, I have been reading the documentation, but I am only getting "numFound": 0
when I try to query any date in the fq
parameter, even though that date does exist in the document.
Example query:
q box:
*:*
fq box:
date_published:"2019-02-28T11:57:29.926Z"
I defined in the schema this field like so:
<field name="date_published" type="pdate" indexed="true" stored="true" required="true"/>
<fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
The above date does exist with the document, but it shows "numFound":0. Although this issue is just a first step, I would actually like to find the latest document with the latest date.