mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
129895 gjames: SEARCH-112: Only showing SearchContext if LastIndexedTxId > 0 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130188 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -97,7 +97,10 @@ public class ResultMapper
|
||||
|
||||
if (jsonResultSet != null)
|
||||
{
|
||||
context = new SearchContext(jsonResultSet.getLastIndexedTxId());
|
||||
if (jsonResultSet.getLastIndexedTxId() > 0)
|
||||
{
|
||||
context = new SearchContext(jsonResultSet.getLastIndexedTxId());
|
||||
}
|
||||
}
|
||||
|
||||
return CollectionWithPagingInfo.asPaged(searchQuery.getPaging(), noderesults, noderesults.size() + skip < total, total, null, context);
|
||||
|
Reference in New Issue
Block a user