lbdremy / solr-node-client

A solr client for node.js.
http://lbdremy.github.com/solr-node-client
MIT License
506 stars 208 forks source link

atomicUpdate does not reflect in the document immediately #205

Open ankitkhedekar opened 7 years ago

ankitkhedekar commented 7 years ago

I am trying to update a solr document using atomicUpdate , it does not give me any error but when I check it from the solr admin panel I still see that the document has the old value. It reflects the new value only after manually reloading the core. I am also setting the autoCommitflag on the solr client as true

Want to know of the possible mistakes in my approach.

thatbudakguy commented 7 years ago

I think this is just autoCommit not working - see #127 . I'm having similar problems with all my update() calls.

The response on that issue was:

autoCommit now only works as a functions

But I don't understand what that means. Is there some other way to use autoCommit? The only places I see it used are in the examples.

manigk commented 6 years ago

I have same problem Client.autoCommit() not working, i'm using solr-cloud 5.5.2 and node v5.0.0. please give solution.

rashadkk commented 4 years ago

autoCommit is not working it seems.

But we can commit the changes after update as below client.commit()