Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)

129042 jvonka: V1 REST API: Sites Live Search (/queries/live-search-sites)
   - add experimental option (for review) to choose sort type
   - fix post query sort to use AlfrescoCollator rather than RuleBasedCollator (latter ignores spaces)
   - fix post query sort to apply paging correctly (get results first) - TODO add test
   REPO-232, REPO-882, REPO-883


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129193 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Martin Muller
2016-08-05 13:49:39 +00:00
parent 267cdf9072
commit 9bc32208c7
3 changed files with 200 additions and 43 deletions

View File

@@ -63,7 +63,11 @@ public interface Queries
static int MIN_TERM_LENGTH_PEOPLE = 2;
// Sites query
static int MIN_TERM_LENGTH_SITES = 2;
static String PARAM_SITE_ID = "id";
static String PARAM_SITE_TITLE = "title";
static String PARAM_SITE_DESCRIPTION = "description";
static int MIN_TERM_LENGTH_SITES = 2;
static String PARAM_SORT_TYPE = "sortType"; // TODO review
/**
* Find Nodes