Hi,
I am using search service and I am able to get name & location.
But i want to get nodeID.( What attribute should i use to get "ID" )
Can anybody help me.
Following is my code
SingleSearchRequest req = new SingleSearchRequest();
String sData = "'"+searchService.getDataCollections().get(0)+"'";
req.setDataCollectionSpec(sData); // use the Enterprise search slice
req.setQueryLanguage(searchService.getSupportedQueryLanguages().get(0)); // use the Search API for queries
req.setFirstResultToRetrieve(1); // start retrieving results at Result #1
req.setNumResultsToRetrieve(50); // retrieve up to 50 search results
req.setResultOrderSpec("sortByRegion=OTCreatedBy"); // sort by the OTCreatedBy region
req.setResultSetSpec("where1=\"<OTSubType>0\""); // where clause of the query type = Folder
List alResultTran = new ArrayList<String>();
alResultTran.add("OTName");
alResultTran.add("OTLocation");
req.setResultTransformationSpec(alResultTran);
searchResp = searchService.search(req, "");