开发者

solr newly added documents on indexes not reflected before restart

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜