search sort options (#386)

This commit is contained in:
Cilibiu Bogdan
2018-06-06 14:53:56 +03:00
committed by Denys Vuika
parent f0c0fe162b
commit f30bb86a6e
2 changed files with 36 additions and 7 deletions

View File

@@ -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
}
]

View File

@@ -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",