return model;
}
private static final SearchParameters getSearchParameters(Map<String, Object> parameters) {
SearchParameters searchParameters = new SearchParameters();
searchParameters.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
<BUG>searchParameters.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO);
searchParameters.setQuery(getQuery(parameters));</BUG>
searchParameters.setSkipCount((int) parameters.get(PARAMETER_SKIP));
searchParameters.addSort("@" + ContentModel.PROP_NODE_DBID, true);
<BUG>searchParameters.setUseInMemorySort(false);
searchParameters.setLimitBy(LimitBy.FINAL_SIZE);
searchParameters.setLimit((int) parameters.get(PARAMETER_LIMIT));</BUG>
return searchParameters;

return model;
}
private static final SearchParameters getSearchParameters(Map<String, Object> parameters) {
SearchParameters searchParameters = new SearchParameters();
searchParameters.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
searchParameters.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO);
searchParameters.setPermissionEvaluation(PermissionEvaluationMode.NONE);
searchParameters.setUseInMemorySort(false);
searchParameters.setLimitBy(LimitBy.FINAL_SIZE);
searchParameters.setLimit((int) parameters.get(PARAMETER_LIMIT));
searchParameters.setQuery(getQuery(parameters));
searchParameters.setSkipCount((int) parameters.get(PARAMETER_SKIP));
searchParameters.addSort("@" + ContentModel.PROP_NODE_DBID, true);
return searchParameters;
