cancel
Showing results for 
Search instead for 
Did you mean: 

Cmis query result not up-to-date

mundi
Champ in-the-making
Champ in-the-making
Hello,

I have a query giving me all documents from a specific folder structure (including subfolders) and having
a specific number as aspect (which alocates it to a group).
The query works correctly.
There is also a possibilty to delete a document (it will simply be moved to a "trash" folder).
When I'm returning to the view showing me all documents, this "deleted" document is still shown nevertheless
it isn't anymore in the folder the query searchs in (with "IN_TREE"). Nevertheless after some time the document
isn't shown anymore by the query.

I guess there is a cache, saving the results and the query isn't executed anymore but the results are simply
taken from this cache therefore I added the command
session.getDefaultContext().setCacheEnabled(false);
before executing the query but this didn't solved the problem.

Does any one known why the moved document is still shown? Can anyone help me?
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Do you happen to be using Solr for your search engine? If so, it is eventually consistent, which means that deletes (and creates) won't show up immediately. There is some lag.

Jeff

mundi
Champ in-the-making
Champ in-the-making
Yes, I am.
So, there is nothing, I can do about it?

kaynezhang
World-Class Innovator
World-Class Innovator
You can reduce the latency by changing the alfresco.cron property in file solrcore.properties which is under your solr core(under workspace-SpacesStore\conf\)
, so Solr would check for repository updates more freqently, It's default value is  15 seconds 

alfresco.cron=0/15 * * * * ? *