Home

New folder not found in subsequent query

You are here

7 posts / 0 new
Last post
New folder not found in subsequent query

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

Re: New folder not found in subsequent query

Has anyone experienced this? I could use some help!

Mike

Re: New folder not found in subsequent query

We are using the SOLR indexing engine and we are on Alfresco 4.0.2.

Mike

Re: New folder not found in subsequent query

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!

Re: New folder not found in subsequent query

Thanks for the response. Is there a way I can work around this?

Re: New folder not found in subsequent query

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

Senior Software Engineer
Alfresco

Re: New folder not found in subsequent query

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,