Not really. It's an ambiguous thing though, what's a "newest" document
when a whole batch is committed at once? And in distributed mode, you
can fire docs to any node in the cloud and they'll get to the right
shard, but order is not guaranteed so "newest" is a fuzzy concept.

I'd put a counter in my docs that I guaranteed was increasing and just
q=*:*&rows=1&sort=timestamp desc. That should give you the most recent
doc. Beware using a timestamp though if you're not absolutely sure
that the clock times you use are comparable!

Best,
Erick

On Sun, May 10, 2015 at 12:57 AM, liwen(李文).apabi <l....@founder.com.cn> wrote:
> Hi, Solr Developers
>
>
>
>       I want to get the newest commited docs in the postcommit event, then 
> nofity the other server which data can be used, but I can not find any way to 
> get the newest docs after commited, so is there any way to do this?
>
>
>
>          Thank you.
>
>          Wen Li
>
>
>

Reply via email to