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:
Roxana Lucanu
2020-01-14 14:13:33 +00:00

View File

@@ -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());