solrj - Is there a way to query Solr for a document with the most recent time field? -


if solr documents has

<field name="timestamp" type="solr.triedatefield" indexed="true" stored="true"  required="true" multivalued="false"/> 

how can query recent document?

only way i've discovered far sort descending date , limit rows 1 has limitations when want recent version of documents id 1,2,3,4

something similar get records highest/smallest <whatever> per group

i seem have gotten results im looking using solr group query

  group=true&group.field=groupid&group.sort=timestamp desc 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -