RajaneeshJM
Programmer
SingleSearchRequest singleSearchRequest = new SingleSearchRequest();
singleSearchRequest.setDataCollectionSpec("'LES Enterprise'");
singleSearchRequest.setQueryLanguage("Livelink Search API V1");
singleSearchRequest.setFirstResultToRetrieve(1);
singleSearchRequest.setNumResultsToRetrieve(100);
singleSearchRequest.setResultOrderSpec("sortByRegion=OTCreatedBy");
singleSearchRequest.setResultSetSpec("where1=(\"OTSubType\":0 OR \"OTSubType\":144)");
singleSearchRequest.getResultTransformationSpec().add("OTName");
singleSearchRequest.getResultTransformationSpec().add("OTLocation");
SingleSearchResponse results = searchService.search(singleSearchRequest, "");
This piece of code lists all Documents and Folders available in all workspaces [both Enterprise & Personal]. What should be changed to ensure that only first level Documents and Folders available in Enterprise workspace only is retrieved?
singleSearchRequest.setDataCollectionSpec("'LES Enterprise'");
singleSearchRequest.setQueryLanguage("Livelink Search API V1");
singleSearchRequest.setFirstResultToRetrieve(1);
singleSearchRequest.setNumResultsToRetrieve(100);
singleSearchRequest.setResultOrderSpec("sortByRegion=OTCreatedBy");
singleSearchRequest.setResultSetSpec("where1=(\"OTSubType\":0 OR \"OTSubType\":144)");
singleSearchRequest.getResultTransformationSpec().add("OTName");
singleSearchRequest.getResultTransformationSpec().add("OTLocation");
SingleSearchResponse results = searchService.search(singleSearchRequest, "");
This piece of code lists all Documents and Folders available in all workspaces [both Enterprise & Personal]. What should be changed to ensure that only first level Documents and Folders available in Enterprise workspace only is retrieved?