04-29-2019 06:32 AM
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.
04-29-2019 07:27 AM
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.
04-29-2019 07:27 AM
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.
05-01-2019 07:59 AM
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.
04-29-2019 08:26 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.