How to get last indexed record in Solr?

后端 未结 2 1630
野的像风
野的像风 2021-01-02 06:17

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

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 06:59

    You can sort the documents by the indexed order using the following query.

    http://localhost:8983/solr/select?q=*:*&sort=_docid_ asc
    
    or 
    
    http://localhost:8983/solr/select?q=*:*&sort=_docid_ desc
    

提交回复
热议问题