Alfresco / alfresco-sdk

The Alfresco In-Process SDK is based on Apache Maven, includes support for rapid and standard development, testing, packaging, versioning and release of your Alfresco integration and extension projects
Apache License 2.0
185 stars 113 forks source link

Make the Solr indexation frequency customizable #496

Closed tartard closed 5 years ago

tartard commented 6 years ago

Solr4 indexes transactions every 15 seconds by default and it is currently not customizable in the SDK. In SDK 2 it was possible to use lucene as a search system during integration tests, and indexing was then almost imediate.

While migrating some projects to the SDK 3, we had to modify many tests to wait 16 seconds before executing methods which perform a search. It makes the execution of all tests very long. For this reason we'd like the indexation frequency (property alfresco.cron in solrcore.properties) to be customizable so that we can set it to 5 seconds for example.