Does solrmarc automatically delete records?

50 views
Skip to first unread message

WillemVermeer

unread,
Mar 18, 2010, 7:58:01 AM3/18/10
to solrmarc-tech
Hi everybody,
Just a quick question: we are going to be processing update files from
national libraries containing deleted records. For MaRC this means
that position 5 of the leader contains a 'd' character. My question is
if SOLRMARC supports automatic processing of deleted records, i.e.
will SOLRMARC send a delete command to solr when it detects a 'd' in
leader position 5?
Thanks,
Willem

Robert Haschart

unread,
Mar 18, 2010, 12:11:22 PM3/18/10
to solrma...@googlegroups.com
Willem,

SolrMarc does have the capability of deleting records from the Solr
index. It is not configured to specifically look for a 'd' in the
Leader, since different sites use different techniques for denoting
which records should be deleted. For instance, our system merely
provides a .txt file listing the ids of the records that are to be deleted.

Adding the following entries to your indexing specification file should
accomplish what you want:


deleted_display = 000[5], (map.delete_record_map), DeleteRecordIfFieldEmpty

map.delete_record_map.d = null
map.delete_record_map = keep

This says map the letter 'd' in the character 5 of the leader to the
special 'null' value, if any other value is found there, return the
string "keep" which will then be added to the Solr record in a field
named "deleted_display"

-Robert Haschart

Willem Vermeer

unread,
Mar 19, 2010, 8:24:03 AM3/19/10
to solrma...@googlegroups.com
Thanks Bob,
That sounds like a nice solution; I'm going to give your suggestions a
go next week.
Willem
Reply all
Reply to author
Forward
0 new messages