开发者

solr newly added documents on indexes not reflected before restart

开发者 https://www.devze.com 2023-03-31 14:03 出处:网络
I am facing the strange behavior with solr insertion. Newly added documents never reflected in index. i have to restart the solr app instance in glassfish server to get the updates. This is happening

I am facing the strange behavior with solr insertion. Newly added documents never reflected in index. i have to restart the solr app instance in glassfish server to get the updates. This is happening all the time. Initially i was using lucene and it was fine.

i am not sure what messed up here, i verified everything and it开发者_开发百科 seems ok. But i want to know is this how solr functions, like it takes some time to update the index after the new insert. Because it never reflected in index after long times(just 10 docs).

has anyone got an idea how to fix this?

Update: I am using rsolr ruby wrapper for connecting to solr


Commit after making changes to the index. Here's how to do it in rsolr.

Alternatively, set up autoCommit.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号