forked from danatcaret/open-experiments
/
allfiles.json
26 lines (26 loc) · 3.36 KB
/
allfiles.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"sakai:query-template": "content:(${q}) OR filename:(${q}) OR tag:(${q}) OR description:(${q}) ${_tags}${_usedin}",
"sakai:query-template-options": {
"sort": "${sortOn} ${sortOrder}"
},
"_tags": "",
"_usedin": "",
"sortOn": "score",
"sortOrder": "desc",
"sling:resourceType": "sakai/solr-search",
"sakai:batchresultprocessor": "Files",
"sakai:propertyprovider": "Files",
"sakai:aggregate-search-results": [ "sakai:tags" ],
"sakai:aggregate-search-results-children": "false",
"sakai:title": "Files - All",
"sakai:shortDescription": "Performs a search on all the publicly available files in the repository.",
"sakai:parameters" : [
"{\"name\" : \"q\", \"description\" : \"The querystring to match the file against. This can either be the content of the file, or any property on the filenode.\"}",
"{\"name\" : \"sakai:tags\", \"description\" : \"A comma seperated list of tags that the file(s) should match\"}",
"{\"name\" : \"usedin\", \"description\" : \"Filter files based on where they are used (linked to.) This can be a multivalued parameter.\"}",
"{\"name\" : \"sortOn\", \"description\" : \"The name of the property you wish to sort on. This only has any affect if it is used with the sortOrder parameter. Default is sakai:filename\"}",
"{\"name\" : \"sortOrder\", \"description\" : \"The order you wish to sort in. Either 'asc' or 'desc'.\"}"
],
"sakai:description": "This allows one to search for files that are available to everybody. This will go trough the entire repository looking for files.",
"sakai:response": "Doing a standard query searching for '*'.<br /> Example: <br /><pre class=\"json\">{\n \"query\": \"//*[(@sling:resourceType='sakai/file' and (jcr:contains(., '*') or jcr:contains(jcr:content, '*')))] order by @sakai:filename ascending\",\n \"items\": 25,\n \"total\": 14,\n \"results\": [\n {\n \"sakai:filename\": \"Argentina.gif\",\n \"jcr:versionHistory\": \"b76d7fcb-14dd-45d7-95f0-2b9657d0c622\",\n \"sakai:id\": \"AdNr5cY-\",\n \"jcr:isCheckedOut\": \"true\",\n \"jcr:created\": \"2009-12-21T17:20:31\",\n \"sling:resourceType\": \"sakai/file\",\n \"jcr:baseVersion\": \"409140de-dc70-4438-b591-1659750caa30\",\n \"jcr:mixinTypes\": [\n \"sakai:propertiesmix\",\n \"rep:AccessControllable\",\n \"mix:referenceable\"\n ],\n \"jcr:primaryType\": \"nt:file\",\n \"sakai:user\": \"simong\",\n \"jcr:uuid\": \"ce322d2f-030c-4759-bd8f-6bad580c4370\",\n \"jcr:predecessors\": [\n \"409140de-dc70-4438-b591-1659750caa30\"\n ],\n \"permissions\": {\n \"set_property\": true,\n \"read\": true,\n \"remove\": false\n },\n \"path\": \"/_user/files/AdNr5cY-\",\n \"jcr:lastModified\": \"2009-12-21T05:20:31\",\n \"sakai:mimeType\": \"image/gif\",\n \"filesize\": 2513,\n \"usedIn\": {\n \"sites\": [\n \n ],\n \"total\": 0\n }\n },\n ....\n ],\n \"totals\": {\n \"sakai:tags\": [\n {\n \"name\": \"Car\",\n \"count\": 2\n }\n ]\n }\n}</pre>"
}