Skip to content

Instantly share code, notes, and snippets.

@wk-j
Last active November 1, 2022 09:30
Show Gist options
  • Save wk-j/cfc2469043b41a45792bf83cfb16dbd1 to your computer and use it in GitHub Desktop.
Save wk-j/cfc2469043b41a45792bf83cfb16dbd1 to your computer and use it in GitHub Desktop.
Change alfresco search items
POST http://localhost:8080/alfresco/api/-default-/public/search/versions/1/search
Content-Type: application/json
Authorization: Basic admin admin
Accept: application/json
{
"query": {
"query": "TYPE:'content' AND (PATH:'/app:company_home/st:sites/cm:services-sales-support-management//*' OR PATH:'/app:company_home/st:sites/cm:business-development//*' OR PATH:'/app:company_home/st:sites/cm:bancassurance//*')",
"language": "afts"
},
"paging": {
"maxItems": 1000
}
}
{
"list": {
"pagination": {
"count": 153,
"hasMoreItems": false,
"totalItems": 153,
"skipCount": 0,
"maxItems": 1000
},
"context": {
"consistency": {
"lastTxId": 5795
}
},
"entries": [
{
"entry": {
"isFile": true,
"createdByUser": {
"id": "admin",
"displayName": "Administrator"
},
"modifiedAt": "2022-09-14T14:33:09.926+0000",
"nodeType": "cm:content",
"content": {
"mimeType": "application/pdf",
"mimeTypeName": "Adobe PDF Document",
"sizeInBytes": 31483,
"encoding": "UTF-8"
},
"parentId": "fa2075b3-c322-4897-8589-4d949f9355e4",
"createdAt": "2022-09-14T14:33:09.290+0000",
"isFolder": false,
"search": {
"score": 1.0
},
"modifiedByUser": {
"id": "admin",
"displayName": "Administrator"
},
"name": "TestUpload.pdf",
"location": "nodes",
"id": "ac83f19f-a99d-465a-9ddf-f4c293eae584"
}
},
{
"entry": {
"isFile": true,
"createdByUser": {
"id": "admin",
"displayName": "Administrator"
},
"modifiedAt": "2022-09-14T14:33:06.856+0000",
"nodeType": "cm:content",
"content": {
"mimeType": "application/pdf",
"mimeTypeName": "Adobe PDF Document",
"sizeInBytes": 28578,
"encoding": "UTF-8"
},
"parentId": "fa2075b3-c322-4897-8589-4d949f9355e4",
"createdAt": "2022-09-14T14:33:06.218+0000",
"isFolder": false,
"search": {
"score": 1.0
},
"modifiedByUser": {
"id": "admin",
"displayName": "Administrator"
},
"name": "ตัวอย่างเอกสาร.pdf",
"location": "nodes",
"id": "ea366fb6-3b27-46cb-ab26-80c696069513"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment