How to query a custom model document by property from version store in alfresco?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 05:11 AM
I want to query old version document by search service. I have used store ref as "workspace://version2Store" in alfresco webscript. But it not working. By default , we can search latest document using fts-alfresco which is available in spacesstore. That same thing , i need in version store also. How to query using webscript? Please guide me.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2018 02:56 PM
Hi:
You may try in node browser for example (selecting the corresponding store), or via Javascript API in JS Console too:
query | Alfresco Documentation
Regards.
--C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 04:57 AM
Bear in mind that the version store is by default not indexed using SOLR, so the only queries you will be able to make need to be compatible with TMQ (transactional metadata query), i.e. executable against the database. This is also dependent on the Alfresco version, with initial support added in 4.2, and further enhancements in 5.1

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2018 07:31 AM
Yes. By default version store is not indexed by SOLR. How to achieve index version store using TMQ in alfresco? I need version store index for some specific custom model only. I am using 5.2 community edition. Kinldy help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2018 09:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2018 07:19 AM
Yes. I have tried by using alfresco Node Browser and using webscript also. But I not get any result by that service.
