mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge branch 'merge-2.6/MNT-20822_hasMore' into 'release/V2.6'
Resolve MNT-20822 "Merge 2.6/ hasmore" See merge request records-management/records-management!1350
This commit is contained in:
@@ -446,6 +446,21 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
|||||||
{
|
{
|
||||||
this.numberFound = numberFound;
|
this.numberFound = numberFound;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean hasMore()
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
Overriding for MNT-20822
|
||||||
|
Changing code to correct the hasMore field in the search api response.
|
||||||
|
Basing off the implementation in SolrJSONResultSet with changes due to
|
||||||
|
numberFound being equal to skip + count rather than an accurate number
|
||||||
|
of possible results
|
||||||
|
*/
|
||||||
|
return getUnFilteredResultSet().length() >= getResultSetMetaData()
|
||||||
|
.getSearchParameters()
|
||||||
|
.getMaxItems();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BitSet inclusionMask = new BitSet(returnedObject.length());
|
BitSet inclusionMask = new BitSet(returnedObject.length());
|
||||||
|
Reference in New Issue
Block a user