Document retrieval was running slow and we have found over 500 documents that have loaded with dates ranging from 01/26/2010 to 10/12/2022 which is affecting the searches. I have looked into the possibility of using arsdoc delete to remove them, but as you stated this only deletes the Index entries therefore leaving the segment date range still incorrect. I looked at using unload, but it requires the load ID, and it appears that the load ID is assigned for a whole load and not by individual documents therefore it would unload all of the documents for a load ID. We load several thousands of documents at one time.
Well there is a workaround, we have thought about it for some customer, but never implemented it yet.
Please be careful if you want to use this idea, and test it, test it, test it, and again test it!!!
And as Justin often says: Backup !!!
So the idea is the following:
Simple version, not so dangerous
- Find the Load ID associated to the document you want to delete
- Look how many documents are in this Load ID
If only one (this is the document you want to delete) -> unload the LoadID
If more than one -> arsdoc delete
Now a more dangerous version:
- Find the Load ID associated to the document you want to delete
- Look how many documents are in this Load ID
If only one (this is the document you want to delete) -> unload the LoadID
If more than one ->
- arsdoc delete
- export all documents from this LoadID (it will export only what is in the Segment) (arsdoc get -cg....)
- unload the LoadID
- import the exported data (arsload -X G ....)
And now with this second version you will have the desired behaviour.
But again... if you want to do it. Please test it, test it, test it... and again test it.
I know it's a lot of warning, but if you loose data, then nobody will be happy.
Cheers,
Alessandro