Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SearchService not Retriving Folders when cutom view is created.

Status
Not open for further replies.

pradeepdsp

Programmer
Jan 17, 2015
3
GB
Hi,

I have created a custom view in Livelink(10.5 Version) with name custom_view.html and this html contains link to two folders Folder1 and Folder2 having objectId 33278 and 33676 respectively.
I have added one more Folder Folder3 at the root level.
All four objects ie custom_view.html, Folder1, Folder2 and Folder3 are at the root level.
But when i use SearchService to retrieve all the records at the root level by passing OTParentID=2000, i am getting only two record
custom_view.html and Folder3, i am unable to retrieve Folder1 and Folder2 details even though it is in root level.
I checked with the permissions for the folders it has see and see content privilege for all three folders.
Is their any setting when custom view is created consisting of link to folders, then these folders should not be retrieved when we use search service.

Below is my sample ServiceService call.

SingleSearchRequest singleSearchRequest = new SingleSearchRequest();
singleSearchRequest.setDataCollectionSpec("'LES Enterprise'");
singleSearchRequest.setQueryLanguage("Livelink Search API V1");
singleSearchRequest.setFirstResultToRetrieve(1);
singleSearchRequest.setNumResultsToRetrieve(10000);
singleSearchRequest.setResultSetSpec("where1= \"OTParentID\":"+2000);
singleSearchRequest.getResultTransformationSpec().add("OTDataID");
singleSearchRequest.getResultTransformationSpec().add("OTName");
singleSearchRequest.getResultTransformationSpec().add("OTModifyDate");
singleSearchRequest.getResultTransformationSpec().add("OTCreateDate");
singleSearchRequest.getResultTransformationSpec().add("OTFileType");
singleSearchRequest.getResultTransformationSpec().add("OTVersion");
singleSearchRequest.getResultTransformationSpec().add("OTParentID");
singleSearchRequest.getResultTransformationSpec().add("OTDocTitle");
singleSearchRequest.getResultTransformationSpec().add("OTSubType");
singleSearchRequest.getResultTransformationSpec().add("OTDataSize");
singleSearchRequest.getResultTransformationSpec().add("OTLocation");

SingleSearchResponse results = searchService.search(singleSearchRequest, "");

results contain only two Records

 
change something in the objects that do not show up something like their general comments etc.Wait for a few minutes so that the objects pass thru the indexer once again(immediately if you are fast and know the dataid's that you are changing you can run select * from dtreenotify, momentarily it may remain there because the extractor will many times beat you to it).If dtreenotify counts do not drop then your search indexing process is not working properly.Why it did not index first,that is because in most organizations search index is an after thought they will not give it the same importance as say the application itslef or its database things that users will notice first.If search is important then those organizations need to know how to get/maintain the search subsystem.

Notice that I am not telling you to look at the enterprise slice creation.I would assume that in your org it is what livelink gave to you when you configured.It is a very flexible system >mostly people will customize the search slices to get what they want (like I do not want customviews cluttering my search results)

If that does not help you you can put wantsearchlogs=true in opentext.ini and re-start.You can then see the raw query and the results obtained.

Try simpler things first and involve ot if you suspect you have done most of the things that you can.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
BTW I am not sure if your qn is pertaining to "why are embedded links in a customview not being shown by custom webservice".To answer that one should look at a query that you run from the GUI and advanced search If you see Full Text results spewed and your embedded links show up look at the search logs and see if you can use the same query within your websvc call or the search xml api call.


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top