We use Les-services (SearchService) to search for objects. Sample code (c #) is shown below:
CSSearchService.SearchServiceClient client = new CSSearchService.SearchServiceClient();
CSSearchService.SingleSearchRequest ssReq = new CSSearchService.SingleSearchRequest();
ssReq.FirstResultToRetrieve = 1;
ssReq.DataCollectionSpec = "\"LES Enterprise\"";
ssReq.NumResultsToRetrieve = 50;
ssReq.QueryLanguage = "Livelink Search API V1";
ssReq.ResultSetSpec = "lookfor1=complexquery&where1=" + query; ssReq.ResultTransformationSpec = fields;
SSearchService.SingleSearchResponse ssResp = client.Search(ref this.tokenSearch, ssReq, "")
int totalCount = ssResp.Results.ListDescription.ActualCount;
We faced an error while getting the total number of rows found. In some cases, the return number is greater than the real number of rows found. For example: ActualCount = 15, while the real number of rows found is 5.
What could this problem be related to and how do I solve it?