Using luceneSearch to get file of specific version

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2015 03:55 PM
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 searchvar nodes = search.luceneSearch("@cm\\:name:\""+fileName+"\" AND VERSION:\"1.1\"");
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2015 04:08 PM
No. Use the version service to get a specific version of a file. You can't search for it.
