AnsweredAssumed Answered

Using luceneSearch to get file of specific version

Question asked by aleksczajka on Jan 9, 2015
Latest reply on Jan 9, 2015 by mrogers
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\"");