RajaneeshJM
Programmer
Hi, We are using SearchService to search for documents and folders
SingleSearchRequest singleSearchRequest = new SingleSearchRequest();
singleSearchRequest.setDataCollectionSpec("'LES Enterprise'");
singleSearchRequest.setQueryLanguage("Livelink Search API V1");
singleSearchRequest.setFirstResultToRetrieve(1);
singleSearchRequest.setNumResultsToRetrieve(100);
singleSearchRequest.setResultOrderSpec("sortByRegion=OTSubType&sortDirection=ascending");
singleSearchRequest.setResultSetSpec("where1=(\"OTSubType\":0 OR \"OTSubType\":144) AND \"OTParentID\":2000");
singleSearchRequest.getResultTransformationSpec().add("OTName");
singleSearchRequest.getResultTransformationSpec().add("OTDataID");
singleSearchRequest.getResultTransformationSpec().add("OTFileType");
singleSearchRequest.getResultTransformationSpec().add("OTLocation");
We are able to list records of type Documents/Folders. But we are not able to identify the type of the document. For example for a word document the type would be doc or docx, for excel xls or xlsx.
The attribute OTFileType is not helpful. Is there any other attribute that has to be specified?
Also, for a document which has multiple versions, there is a GUID which is common for the document across all versions. OTDataID does not provide the value of the GUID and instead provides the ID which is different for a document for different versions. Is there a different attribute for obtaining for the GUID. GUID is available when DocumentManagement service is used but not in SearchService
SingleSearchRequest singleSearchRequest = new SingleSearchRequest();
singleSearchRequest.setDataCollectionSpec("'LES Enterprise'");
singleSearchRequest.setQueryLanguage("Livelink Search API V1");
singleSearchRequest.setFirstResultToRetrieve(1);
singleSearchRequest.setNumResultsToRetrieve(100);
singleSearchRequest.setResultOrderSpec("sortByRegion=OTSubType&sortDirection=ascending");
singleSearchRequest.setResultSetSpec("where1=(\"OTSubType\":0 OR \"OTSubType\":144) AND \"OTParentID\":2000");
singleSearchRequest.getResultTransformationSpec().add("OTName");
singleSearchRequest.getResultTransformationSpec().add("OTDataID");
singleSearchRequest.getResultTransformationSpec().add("OTFileType");
singleSearchRequest.getResultTransformationSpec().add("OTLocation");
We are able to list records of type Documents/Folders. But we are not able to identify the type of the document. For example for a word document the type would be doc or docx, for excel xls or xlsx.
The attribute OTFileType is not helpful. Is there any other attribute that has to be specified?
Also, for a document which has multiple versions, there is a GUID which is common for the document across all versions. OTDataID does not provide the value of the GUID and instead provides the ID which is different for a document for different versions. Is there a different attribute for obtaining for the GUID. GUID is available when DocumentManagement service is used but not in SearchService