cancel
Showing results for 
Search instead for 
Did you mean: 

New folder not found in subsequent query

michaelloveusa
Champ on-the-rise
Champ on-the-rise
Hi there.

I am creating a folder via the CMIS createFolder object webservice method and very soon thereafter, I am running a query (via the discovery service) to see if that folder exists and I am getting a negative result. It seems like there may be a lag in what exists and what is known to the query engine. Has anyone experienced this? If so, how do I get around it?

Thanks!

Mike
6 REPLIES 6

michaelloveusa
Champ on-the-rise
Champ on-the-rise
Has anyone experienced this? I could use some help!

Mike

michaelloveusa
Champ on-the-rise
Champ on-the-rise
We are using the SOLR indexing engine and we are on Alfresco 4.0.2.

Mike

jspuchau
Champ in-the-making
Champ in-the-making
Hi mike:

As you are using SolR, probably what you are experiencing is a eventual inconsistency. As node creations are pushed into a queue from SolR, the indexing subsystem delays a few seconds on having indexed the node.

So I think thats the normal behaviour of the SolR indexing. If you need immediate indexing, probably you should choose lucene indexing.

Regards!

michaelloveusa
Champ on-the-rise
Champ on-the-rise
Thanks for the response. Is there a way I can work around this?

mrogers
Star Contributor
Star Contributor
Don't use search to find a folder you have just created.

jspuchau
Champ in-the-making
Champ in-the-making
Or if you mandatory need to search after the creation, use lucene implementation of search subsystem, setting the index.subsystem.name=lucene in your alfresco-global.properties file.

Regards,