alfresco community version: save and reload data via webservice -> delay problem

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2014 05:11 AM
hello there,
we still use the old way to communicate in our application with alfresco. sometimes i have to save documents in alfresco and immediately reload them.
but the size for nodes is 0 at this point, although everything is technically right and the new content can be seen in alfresco. now, when i try to call
in a period between 5 and 30 seconds again, nodes has the expected result.
is there way to make such webservice-queries synchron?
thanks in advance,
steve
we still use the old way to communicate in our application with alfresco. sometimes i have to save documents in alfresco and immediately reload them.
//upload documents in a specific folderWebServiceFactory.getRepositoryService().update(cml);//try to load the before written documentsnodes = WebServiceFactory.getRepositoryService().get(new Predicate(null,STORE,query));
but the size for nodes is 0 at this point, although everything is technically right and the new content can be seen in alfresco. now, when i try to call
nodes = WebServiceFactory.getRepositoryService().get(new Predicate(null,STORE,query));
in a period between 5 and 30 seconds again, nodes has the expected result.
is there way to make such webservice-queries synchron?
thanks in advance,
steve
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2014 05:24 AM
We service queries should be atomic already. Is your problem with the async indexing instead. What sort of query are you attempting? How is search configured?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2014 06:13 AM
we use lucene-queries. a query may look like:
referring to this we have never changed anything in property files like the "repository.properties".
i just read the section about configuring lucene-search here:
http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fsearch-fts-...
but i found nothing special. the mentioned data dictionary options are as follows in our "contentModel.xml":
any other hint would really be appreciated.
+PATH:"/app:company_home/cm:Customer/cm:Zuse_x002c__x0020_Konrad//*" AND TYPE:\{http\://www.alfresco.org/model/content/1.0\}content
referring to this we have never changed anything in property files like the "repository.properties".
i just read the section about configuring lucene-search here:
http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fsearch-fts-...
but i found nothing special. the mentioned data dictionary options are as follows in our "contentModel.xml":
<type name="cm:content"> <title>Content</title> <parent>cm:cmobject</parent> <archive>true</archive> <properties> <property name="cm:content"> <type>d:content</type> <mandatory>false</mandatory> <!– Although content is marked as indexed atomically it may end up asynchronous –> <!– if the content conversion will take too long. Content that does not require conversion –> <!– to UTF8 test/plain will always be indexed atomically –> <index enabled="true"> <atomic>true</atomic> <stored>false</stored> <tokenised>true</tokenised> </index> </property> </properties> </type>
any other hint would really be appreciated.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2014 11:48 AM
i figured out, that
in "alfresco-global.properties" caused the problem after renaming or copying spaces 😕
after changing this to:
everything works well.
index.subsystem.name=solr
in "alfresco-global.properties" caused the problem after renaming or copying spaces 😕
after changing this to:
index.subsystem.name=lucene
everything works well.
