Solr will overwrite the documents as they are indexed. So if they are
indexed in the order shown in your email you will get the correct versions.


Joel Bernstein
http://joelsolr.blogspot.com/


On Fri, Oct 15, 2021 at 1:02 AM krishna prasad <
[email protected]> wrote:

> I have a docs as follows:
>
> {docid:1,version:1}
> {docid:1,version:2}
> {docid:2,version:1}
> {docid:2,version:2}
> {docid:2,version:3}
> {docid:3,version:1}
> {docid:3,version:2}
>
>
> I need to get all the docs which are of the latest version per each docid.
>
> o/p
>
> {docid:1,version:2}
> {docid:2,version:3}
> {docid:3,version:2}
>
> Can give some hints on how to do it.
>

Reply via email to