i'm confused , . here understand
autosoftcommit - after autosoftcommit, if the solr server goes down, autosoftcommit documents lost.
autocommit - hard commit disk , make sure autosoftcommit commits written disk , commits other document.
my following configuration seems with autosoftcommit. autocommit on own not seems doing commits. there missing ?
<updatehandler class="solr.directupdatehandler2"> <updatelog> <str name="dir">${solr.ulog.dir:}</str> </updatelog> <autosoftcommit> <maxdocs>1000</maxdocs> <maxtime>1200000</maxtime> </autosoftcommit> <autocommit> <maxdocs>10000</maxdocs> <maxtime>120000</maxtime> <opensearcher>false</opensearcher> </autocommit> </updatehandler>
why autocommit working on it's own ?
you have opensearcher=false hard commits. means though commit happened, searcher has not been restarted , cannot see changes. try changing setting , not need soft commit.
softcommit reopen searcher. if have both sections, soft commit shows new changes (even if not hard-committed) , - configured - hard commit saves them disk, not change visibility.
this allows put soft commit 1 second , have documents show , have hard commit happen less frequently.
Comments
Post a Comment