cancel
Showing results for 
Search instead for 
Did you mean: 

Using luceneSearch to get file of specific version

aleksczajka
Champ in-the-making
Champ in-the-making
Anyone know how to use luceneSearch to retrieve a file by name and version? I try the following but "@cm:version" or "@cm:versionId" or just simply "VERSION:" does not seem to exist as a parameter…


var fileName = url.extension.replaceAll(/"/g, "");

// perform search
var nodes = search.luceneSearch("@cm\\:name:\""+fileName+"\" AND VERSION:\"1.1\"");
1 REPLY 1

mrogers
Star Contributor
Star Contributor
No.    Use the version service to get a specific version of a file.    You can't search for it.