Hi All, Pinging again for some assistance. On Tue, Dec 19, 2023 at 10:12 AM Saksham Gupta <saksham.gu...@indiamart.com> wrote:
> Hi All, > > I have written a small script in python to delete a product from solr > cloud collection on the basis of unique id, _route_ and _version_. > > I have extracted the exact values of unique id, _route_ and _version_ from > solr index and used them to delete the product. But my script gives an > error which indicates that the _version_ I used is incorrect. The error > message looks like: > > "msg":"Async exception during distributed update: Error from server at > http://solr_ip:port/solr/collection_name/: null\n\n\n\nrequest: > http://solr_ip:port/solr/collection_name/\nRemote error message: version > conflict for {unique id} expected=1784635392440402000 > actual=1784635392440401920", > > "code":409}} > > 1. How could this be the case where actual _version_ is different from the > one visible on querying. > > > 2. How to get the actual _version_ of a document? > > 3. Any other ways to delete the solr document using _version_? >