Hi All,
Am new to OT, here am trying to fetech all the categories that are present in my CS using SingleSearch. And below is my code , am using admin auth to search service
singleSearchRequest.setDataCollectionSpec("'LES Enterprise'");
singleSearchRequest.setQueryLanguage("Livelink Search API V1");
singleSearchRequest.setFirstResultToRetrieve(1);
singleSearchRequest.setNumResultsToRetrieve(100);
singleSearchRequest.setResultOrderSpec("sortByRegion=OTCreatedBy");
singleSearchRequest.getResultTransformationSpec().add("OTName");
singleSearchRequest.setResultSetSpec("where1=\"OTSubtype\":131");
System.out.println("Calling search");
results = srrSvr.search(singleSearchRequest, "");
System.out.println("This is the result "+results.getResults().getItem().size());
if(null != results){
System.out.println("This is the result "+results.getResults().getItem().size());
SResultPage res = results.getResults();
if(0!=res.getItem().size()){
List<SGraph> metaLis = res.getItem();
System.out.println("Under if metaLis.size()" + metaLis.size());
for(int i=0; i< metaLis.size(); i++){
System.out.println("under for1 metaLis.size() ::"+metaLis.size());
//System.out.println("values ::"+metaLis.get(i).getN());
for(int j=0;j<metaLis.get(i).getN().size();j++){
System.out.println("under for2 metaLis.get(i).getN().size()::"+metaLis.get(i).getN().size());
//System.out.println("node::"+metaLis.get(i).getN().get(j).getS());
for(int k=0; k<metaLis.get(i).getN().get(j).getS().size(); k++){
System.out.println("under for3 metaLis.get(i).getN().get(j).getS().size()::"+metaLis.get(i).getN().get(j).getS().size());
System.out.println( metaLis.get(i).getN().get(j).getS().get(k));
val = metaLis.get(i).getN().get(j).getS().get(k);
}
}
}
}
}
The result retrived :: test.
where as i have the below list of categories present and among which test,testing,shatestAdmHm categories and are created under same parent folder using using admin, But the query gives only one result.

Are there any folder /worksapce level restrictions ,if yes how to remove them .And why user is able to see his one record and not the other records
Thanks in advance