How would one go about searching for a metadata field in older versions of a node?
I know that Solr supports indexing for version2store, and it looks like in Alfresco 4.2f, it is indeed indexed. However, there does not seem to be a way to get it through the Share FTS Search by just querying :.
If this is not possible in Share search, is there something in the Java API or OpenCMIS that allows this?
When you execute a query against the Alfresco Search Service (which will in turn talk to Lucene or Solr as configured), you specify a StoreRef. Normally, that'll be StoreRef.PROTOCOL_WORKSPACE
to search all current documents. However, you can equally run it against StoreRef.PROTOCOL_ARCHIVE
to query the older versions of nodes. You can also get this from VersionService.getVersionStoreReference()
When you get back the results, you should be able to look for the versionLabel
property to see what version your result matched