[Blacklight-development] more little importer tricks

Matt Mitchell goodieboy at gmail.com
Thu May 1 21:04:51 EDT 2008


Hi Naomi,

Thanks for the detailed report! The _display fields should be multiValued
and the current schema is here:

http://blacklight.rubyforge.org/svn/trunk/rails/solr/conf/schema.xml

Are you using the trunk version or the last release?

Matt

On Thu, May 1, 2008 at 8:50 PM, Naomi Dushay <ndushay at stanford.edu> wrote:

> 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
>
>
>
>
> _______________________________________________
> Blacklight-development mailing list
> Blacklight-development at rubyforge.org
> http://rubyforge.org/mailman/listinfo/blacklight-development
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/blacklight-development/attachments/20080501/3bf79890/attachment.html>


More information about the Blacklight-development mailing list