Merged searchapi (5.2.1) to 5.2.N (5.2.1)

130052 gjames: SEARCH-161: Removed support for synonyms on SORT fieldNames


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130299 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gethin James
2016-09-06 15:38:57 +00:00
parent 2ae8c3f90d
commit 912123029d
2 changed files with 1 additions and 19 deletions

View File

@@ -182,8 +182,7 @@ public class SearchMapper
{
SortType sortType = SortType.valueOf(sortDef.getType());
String field = sortDef.getField();
QName propQname = PARAM_SYNONYMS_QNAME.get(field);
sp.addSort(new SortDefinition(sortType, propQname==null?field:propQname.toString(), sortDef.isAscending()));
sp.addSort(new SortDefinition(sortType, field, sortDef.isAscending()));
}
catch (IllegalArgumentException e)
{