cancel
Showing results for 
Search instead for 
Did you mean: 

Search on previous versions

anweber
Champ in-the-making
Champ in-the-making
Hi,

   Is it possible to search (by API) on metadata values from the actual and previous versions of documents? 
For example :
  • I create a new document.

  • I set the value "first title" to the "title" property

  • I create a new version of the same document (of course, I have added the "versionable" aspect)

  • In the new version, I set the value "second title" to the "title" property

  • I search on "first" in the field "title" and I want to obtain my document in the result list
    Thanks for your help,

               Andre
3 REPLIES 3

andnyg
Champ in-the-making
Champ in-the-making
Why is no one answering this question? It sure is a feature that you would like to see in Alfresco.

hbf
Champ on-the-rise
Champ on-the-rise
I am really not sure here, but have you tried doing the search in Alfresco's Node Browser?

If in the Node Browser you do a Lucene search in workspace://SpacesStore for

@cm\:title:"second title"

you should find the current version. If you do the same search in archive://SpacesStore you should not get any result. However, if in the latter store you search for

@cm\:title:"first title"

you should find your initial version.

If you need to do this programmatically, use the SearchService, see this wiki page.

Hope this helps.
Kaspar

P.S. I have not worked with versions so far; what I write may be incorrect.

andy
Champ on-the-rise
Champ on-the-rise
Hi

The index structure for the version store reflected the model it used (whihc obfuscated the actual model)
It is not much use for search. Inrecent builds the indexing of the version store has been removed.
Labs 3B includes an updated version store (it contains the old doc with extra properties)

Andy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.