How to get last indexed record in Solr?
问题 I want to know how to get/search last indexed record in Apache Solr..? When the existing record is updated then it goes to end of all the records...so I want to get that last indexed record. thanks.. 回答1: You could add a 'timestamp' field to your Solr schema that puts the current date/time into the record when it is added. <field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/> Then, do a sort in descending order by this field and the first record