AnsweredAssumed Answered

Unable to Sort in Java Backed Webscript

Question asked by nitinagarwal1985 on Oct 29, 2010
Latest reply on Nov 2, 2010 by kevinr
Hi,

I have done the following code for the sorting of nodes. but this is not working.

RepoSearchInitializer searchInitializer = new RepoSearchInitializer();
String qry ="TYPE:\"{com.infoaxon.fkm.repository}resource\"";
SearchParameters searchParameters = searchInitializer.invokeSearchParameter(qry);
searchParameters.addSort("{com.infoaxon.fkm.repository}resourceTitle",true);
ResultSet results = serviceRegistry.getSearchService().query(searchParameters);

Can anyone tell me what is the problem with this code and please tell me the right code.

Thanks,
Nitin

Outcomes