Episode Service's SolrIndexManager only deletes 10 mp versions at a time

Steps to reproduce

Steps to reproduce:
1. Archive more than 10 version of an mp
2. Delete the mp (via the archive service)

Actual Results: Only 10 of the mp's versions are flagged as deleted. The query for mps the archive service returns the remaining un-deleted versions of the mp.

Expected Results: All versions of the mp are flagged as deleted.

Workaround (if any): Keep deleting in iterations of 10 versions until all versions are flagged as deleted in the archive.

Possible issue: The default Apache Solr Result set has a limit (# of rows) of 10 [1]. The Episode Service's SolrIndexManager does not change this default row limit in the delete query [2].

[1] https://wiki.apache.org/solr/CommonQueryParameters#rows
[2] https://bitbucket.org/opencast-community/matterhorn/src/6184be4c2b4a59da66b63e586ffd233bef46b3ba/modules/matterhorn-archive-schema/src/main/java/org/opencastproject/archive/opencast/solr/SolrIndexManager.java?at=r%2F2.2.x&fileviewer=file-view-default#SolrIndexManager.java-232

Fixed and reviewed
Your pinned fields
Click on the next to a field label to start pinning.


Former user


Former user


Usability Issue