[Archivesspace_Users_Group] duplicate records?

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Thu Dec 3 07:14:20 EST 2015


Ah cool.


You can also just touch the timestamp column on the deleted_records table and rebuild the index...


update deleted_records set timestamp = NOW();



b,chris.


Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/


________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Brian Hoffman <brianjhoffman at gmail.com>
Sent: Wednesday, December 2, 2015 7:08 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] duplicate records?

This is a common occurrence when developing or testing, especially if you switch between databases. It annoys me frequently enough that I wrote a utility to prune the index. I only recommend this for users with command line skills, and don't recommend using it on a production solr index:

npm install ashtin -g
ashtin setup
ashtin prune-index --solr_url http://localhost:8090

That should remove all non-existent resource records from the index.

Brian


On Dec 2, 2015, at 10:28 AM, Matthew J Gorzalski <mGorzalski at lib.siu.edu<mailto:mGorzalski at lib.siu.edu>> wrote:

We'll give it a try later today.  Thanks Chris.

Matt

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>[mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Chris Fitzpatrick
Sent: Wednesday, December 02, 2015 2:58 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] duplicate records?


Hi Matt,

You probably need to rebuild your index from scratch. Delete your index and your indexer_state files.


best, Chris.

Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org><archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Matthew J Gorzalski <mGorzalski at lib.siu.edu<mailto:mGorzalski at lib.siu.edu>>
Sent: Tuesday, December 1, 2015 10:45 PM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] duplicate records?

Although the migration tool is improved, we're still getting duplicate records where one is correct and one is erroneous and "not found."  Do people still get duplicate records?

When I try to delete the duplicate Delyte Morris Photo collection I get

Unable to delete records:
["{\"error\":\"Resource not found\"}\n"] [/repositories/4/resources/2190]

Thanks,

MATT GORZALSKI
University Archivist

MORRIS LIBRARY
MAIL CODE 6632
SOUTHERN ILLINOIS UNIVERSITY
605 AGRICULTURE DR
CARBONDALE, IL 62901

mgorzalski at lib.siu.edu<mailto:mgorzalski at lib.siu.edu>
P: 618/453-2225
F: 618/453-3440
lib.siu.edu<http://lib.siu.edu>

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20151203/53fd226c/attachment.html>


More information about the Archivesspace_Users_Group mailing list