The problem is that files are not appearing in searches that are performed immediately after the file is uploaded.
How can I reduce this lag?
Are there any settings for this?
Alfresco version ==> 6.1.
Solr6 ==> Alfresco-Search-Services 1.3.0.1.
Solved! Go to Solution.
Well, this is not a bug (it's a feature).
SOLR works asyncronously, doing batches for indexing 1000 documents each 30 seconds (the numbers depend on Alfresco and SOLR version). So normally, the content is not indexed once uploaded, and you need to wait a little bit. It is called eventual consistency. It is not a real problem for a collaborative case, but other situations (for example a CMIS application with transactional requirements), you may need to enable transactional metadata queries.
Regards.
--C.
Well, this is not a bug (it's a feature).
SOLR works asyncronously, doing batches for indexing 1000 documents each 30 seconds (the numbers depend on Alfresco and SOLR version). So normally, the content is not indexed once uploaded, and you need to wait a little bit. It is called eventual consistency. It is not a real problem for a collaborative case, but other situations (for example a CMIS application with transactional requirements), you may need to enable transactional metadata queries.
Regards.
--C.
Hi,
you have to send queries that are full compliance with the transactional metadata query engine (Overview of transactional metadata query | Alfresco Documentation ) so they are evaluated directly from the DBMS. As Cesar Capillas said the SOLR engine works asyncronously.
The frequency / interval of indexing can be configured in all Alfresco SOLR / Search Services versions. I believe 15 seconds is actually the default, not 30 seconds - but in any case, Cesar's answer is correct.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.