mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-24 14:31:16 +00:00
search sort options (#386)
This commit is contained in:
committed by
Denys Vuika
parent
f0c0fe162b
commit
f30bb86a6e
@@ -162,33 +162,54 @@
|
||||
"include": ["path", "allowableOperations"],
|
||||
"sorting": {
|
||||
"options": [
|
||||
{
|
||||
"key": "score",
|
||||
"label": "SEARCH.SORT.RELEVANCE",
|
||||
"type": "FIELD",
|
||||
"field": "score",
|
||||
"ascending": true
|
||||
},
|
||||
{
|
||||
"key": "name",
|
||||
"label": "Name",
|
||||
"label": "SEARCH.SORT.FILENAME",
|
||||
"type": "FIELD",
|
||||
"field": "cm:name",
|
||||
"ascending": true
|
||||
},
|
||||
{
|
||||
"key": "title",
|
||||
"label": "SEARCH.SORT.TITLE",
|
||||
"type": "FIELD",
|
||||
"field": "cm:title",
|
||||
"ascending": true
|
||||
},
|
||||
{
|
||||
"key": "modified",
|
||||
"label": "SEARCH.SORT.MODIFIED_DATE",
|
||||
"type": "FIELD",
|
||||
"field": "cm:modified",
|
||||
"ascending": true
|
||||
},
|
||||
{
|
||||
"key": "content.sizeInBytes",
|
||||
"label": "Size",
|
||||
"label": "SEARCH.SORT.SIZE",
|
||||
"type": "FIELD",
|
||||
"field": "content.size",
|
||||
"ascending": true
|
||||
},
|
||||
{
|
||||
"key": "description",
|
||||
"label": "Description",
|
||||
"key": "content.mimetype",
|
||||
"label": "SEARCH.SORT.TYPE",
|
||||
"type": "FIELD",
|
||||
"field": "cm:description",
|
||||
"field": "content.mimetype",
|
||||
"ascending": true
|
||||
}
|
||||
],
|
||||
"defaults": [
|
||||
{
|
||||
"key": "name",
|
||||
"key": "score",
|
||||
"type": "FIELD",
|
||||
"field": "cm:name",
|
||||
"field": "score",
|
||||
"ascending": true
|
||||
}
|
||||
]
|
||||
|
@@ -236,6 +236,14 @@
|
||||
}
|
||||
},
|
||||
"SEARCH": {
|
||||
"SORT": {
|
||||
"RELEVANCE": "Relevance",
|
||||
"FILENAME": "Filename",
|
||||
"TITLE": "Title",
|
||||
"MODIFIED_DATE": "Modified Date",
|
||||
"SIZE": "Size",
|
||||
"TYPE": "Type"
|
||||
},
|
||||
"FACET_FIELDS": {
|
||||
"FILE_TYPE": "File Type",
|
||||
"CREATOR": "Creator",
|
||||
|
Reference in New Issue
Block a user