cancel
Showing results for 
Search instead for 
Did you mean: 

After creating Document, Queries Fail

fabernate
Champ in-the-making
Champ in-the-making
Hi

I noticed that if I create a document with the aspect, re-run the cmsi applocation very quicly, the query on the aspect doesn't get any result
If I wait around 5 seconds and re run the application with query, I get it

however

is commit the session possible ?

Thanks
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

this is actually the expected / correct behaviour of Alfresco's implementation of search / query. In either configuration of the search subsystem (Lucene or SOLR), the repository is checked every x seconds (default is 5 for Lucene and 15 for SOLR) for new content to index. Only once new content has been indexed will it be searchable by CMIS SQL. There is no need and no possibility to explicitly "commit" a session, i.e. force an index operation.

Regards
Axel