Did you delete the index, spellShingle and spellchecker folders themselves, or only their contents?  If you leave empty folders behind, that can cause problems.  However, I don’t think anything you do with the Solr index should directly cause a translation map error.  As Vasek suggested, you may want to investigate that problem separately – if the files are where you expect them, perhaps it is an environment variable problem (i.e. VUFIND_HOME not set correctly).

 

- Demian

 

From: Haik Zargaryan [mailto:haikzargaryan@yahoo.com]
Sent: Monday, November 05, 2012 1:55 AM
To: vufind-general@lists.sourceforge.net
Subject: [VuFind-General] problems with deleting and reindexing records

 

Dear friends,

We are trying to delete some testing records from our catalog. So, according to the instructions, we should have stopped vufind, delete files in the *index, spellShingle, spellchecker* folders in the /usr/local/vufind/solr/biblio directory, start vufind and import new records.

We have followed these guidelines but some problems have occurred. So, when importing the record, in the console we see the following errors
----------------
SEVERE: Unable to find file containing specified translation map (script.)
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at org.solrmarc.marc.MarcHandler.loadIndexer(MarcHandler.java:527)
        at org.solrmarc.marc.MarcHandler.init(MarcHandler.java:126)
        at org.solrmarc.marc.MarcImporter.main(MarcImporter.java:822)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.simontuffs.onejar.Boot.run(Boot.java:334)
        at com.simontuffs.onejar.Boot.main(Boot.java:170)
Caused by: java.lang.IllegalArgumentException: Error: Problems reading specified translation map (script.)
        at org.solrmarc.index.SolrIndexer.fillMapFromProperties(SolrIndexer.java:323)
        at org.solrmarc.index.SolrIndexer.<init>(SolrIndexer.java:115)
        at org.solrmarc.index.VuFindIndexer.<init>(VuFindIndexer.java:84)
        ... 13 more
Nov 5, 2012 3:48:09 PM org.solrmarc.marc.MarcHandler loadIndexer
SEVERE: Unable to load Custom indexer: org.solrmarc.index.VuFindIndexer
Nov 5, 2012 3:48:09 PM org.solrmarc.marc.MarcImporter main
SEVERE: Error configuring Indexer from properties file.  Exiting...
Error configuring Indexer from properties file.  Exiting...
------------------------------------------------
Interestingly, all deleted index files were again created by vufind which means that Solr has at least tried to index the record. Then how can we explain these error?

Regards,
Haik.