cancel
Showing results for 
Search instead for 
Did you mean: 

Need lucene query to get the non-current versions

satish
Champ in-the-making
Champ in-the-making
Hi All,

I have a requirement like We need a lucene query to get all the non-current versions which are created 3 years ago and not accessed since 1 year.
I am able to retrieve only current versions that too based on creation date only. Need help on aceesed date also

Can any one please help me to get the query.

Regards
Satish
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Hello,

you can't select by accessed date unless you have configured Alfresco to specifically set this (which it doesn't by default). Also, as the version nodes are frozen, I don't think that they will have their access date updated, so it should be the very same date as the created date if it is set at all…

Regards
Axel

satish
Champ in-the-making
Champ in-the-making
Thanks Axel for your update. My primary requirement is to get the lucene search for all the older versions. For this i have configured version2Store as given in wiki http://wiki.alfresco.com/wiki/Alfresco_And_SOLR#Example:_configuring_search_for_the_system:.2F.2Fsys... . Configuration is successful and i am able to search in version store but still i am not able to retrieve the older versions
For eg: TYPE:"cm:content" AND @cm\:name:"Test123" here i am able to get the latest version.
Is there any configuration need to be set to get the older versions in versionStore. I observed that indexing happening on the documents that i uploaded. I dont have any clue on this.
Any pointers will be helpful.

Regards
Satish

satish
Champ in-the-making
Champ in-the-making
Any one have idea on this ?

Regards
Satish