Hi Alex, You can set the autocommit time limit to 5 seconds. From your client code, index some content without issuing explicit commit. From admin UI if you search for the content which u indexed recently you will be able to find it. It shows that Solr is inssuing autocommit automatically after 5 seconds and you will be able to search in admin UI because your opensearcher value is set to true. If you set it to 'false' then even though solr has done auto commit it will not be visible because solr has not opened a new searcher and is showing you the content from the cached searcher / previous searcher. Hope it helps
Regards Ravi On Wed, Oct 6, 2021 at 6:30 PM Saur, Alexandre (ELS-AMS) < [email protected]> wrote: > Hello there, > > I have a quick question regarding Solr 8 autocommit feature. This is my > configuration: > > <autoCommit> > <maxTime>600000</maxTime> > <openSearcher>true</openSearcher> > </autoCommit> > > <autoSoftCommit> > <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime> > </autoSoftCommit> > > I can check this is true using the console. However, I cannot see any > thread doing the autocommit in the logs, nor any metric that gives me the > time the autocommit is being done. > > Is there any way to know for sure the autocommit is working as expected in > Solr 8? > > PS: Solr 6 had an entry in the logs that confirmed it was being executed, > you just need to grep for "commitScheduler" > > Thanks, > Alex > > ________________________________ > > Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The > Netherlands, Registration No. 33158992, Registered in The Netherlands. >
