[Blacklight-development] more little importer tricks

Naomi Dushay ndushay at stanford.edu
Thu May 1 20:50:57 EDT 2008


I tried the importer just now (just pulled it from svn, too.) and hit  
a few bumps also.  I concur with the index.sh problems ... I just  
ended up executing the java command directly from the command line.

I believe the sample data has a record with two 020 subfield a  
values.  From the output of the importer on the sample file:

Adding record 8: u89
Error indexing
org.apache.solr.common.SolrException: ERROR: multiple values  
encountered for non multiValued field isbn_display: first='0877663637'  
second='0877663343 (pbk.)'
	at  
org 
.apache 
.solr.update.DocumentBuilder.addSingleField(DocumentBuilder.java:67)
	at  
org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java:88)
	at  
org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java: 
118)
	at  
org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java: 
101)
	at SolrIndexer.addField(Unknown Source)
	at SolrIndexer.addFields(Unknown Source)
	at SolrIndexer.indexRecord(Unknown Source)
	at MarcImporter.addToIndex(Unknown Source)
	at MarcImporter.importRecords(Unknown Source)
	at MarcImporter.main(Unknown Source)
Adding record 9: u144

The SOLR schema.xml file in  blacklight/solr-home/conf directory  says  
that all *_display fields are NOT multiValued.

To get the sample data to index without an error, it's just a matter  
of changing one line in the blacklight.properties file:

from:
field_list_25a = isbn_display, all, 020a

to
field_list_25a = isbn_display, first, 020a

HOWEVER, I am still getting a

java.lang.RuntimeException:  
org.apache.lucene.index.CorruptIndexException: Unknown format version:  
-4

when trying to view the index with solr  (http://yer.path:8983/solr/admin 
  ).

But I can look at the same index with luke without a problem.


- Naomi Dushay
Stanford University Libraries
ndushay at stanford.edu



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/blacklight-development/attachments/20080501/1dfedbbd/attachment.html>


More information about the Blacklight-development mailing list