Task #7242
CN Index - Feature #6732: Add 'archived' records to search index
Add a new mechanism to remove the solr index of an object
0%
Description
When we delete an object from CN, the solr index of this object will be removed as well. Currently, we use this mechanism to remove the solr index - set the archived value to be true in the system metadata. Solr repository will remove the index when it sees the archive value is true.
However, this will not work anymore since the solr repository will keep the solr index for the archived objects. We need a new mechanism to remove the solr index of a deleted object.
History
#1 Updated by Skye Roseboom over 9 years ago
- Parent task set to #6732
#2 Updated by Skye Roseboom over 9 years ago
- Status changed from New to Rejected
- translation missing: en.field_remaining_hours set to 0.0
Deletes from the solr index are generated by calling 'remove' on the system metadata map for the associated documents system metadata record. Deletes are not generated based on 'archived'.
#3 Updated by Jing Tao over 9 years ago
- Estimated time set to 0.00
I tested the delete method in cn-dev-ucsb-1. It worked:
https://cn-dev-ucsb-1.test.dataone.org/cn/v2/meta/tao.13305.1
https://cn-dev-ucsb-1.test.dataone.org/cn/v2/query/solr/?q=id:tao.13305.1