Hi Naomi,<br><br>Thanks for the detailed report! The _display fields should be multiValued and the current schema is here:<br><br><a href="http://blacklight.rubyforge.org/svn/trunk/rails/solr/conf/schema.xml">http://blacklight.rubyforge.org/svn/trunk/rails/solr/conf/schema.xml</a><br>
<br>Are you using the trunk version or the last release?<br><br>Matt<br><br><div class="gmail_quote">On Thu, May 1, 2008 at 8:50 PM, Naomi Dushay &lt;<a href="mailto:ndushay@stanford.edu">ndushay@stanford.edu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">I tried the importer just now (just pulled it from svn, too.) and hit a few bumps also. &nbsp;I concur with the index.sh problems ... I just ended up executing the java command directly from the command line.<br>
<br>I believe the sample data has a record with two 020 subfield a values. &nbsp;From the output of the importer on the sample file:<div><br></div><div>Adding record 8: u89<br>Error indexing<br>org.apache.solr.common.SolrException: ERROR: multiple values encountered for non multiValued field isbn_display: first=&#39;0877663637&#39; second=&#39;0877663343 (pbk.)&#39;<br>
<span style="white-space: pre;">        </span>at org.apache.solr.update.DocumentBuilder.addSingleField(DocumentBuilder.java:67)<br><span style="white-space: pre;">        </span>at org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java:88)<br>
<span style="white-space: pre;">        </span>at org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java:118)<br><span style="white-space: pre;">        </span>at org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java:101)<br>
<span style="white-space: pre;">        </span>at SolrIndexer.addField(Unknown Source)<br><span style="white-space: pre;">        </span>at SolrIndexer.addFields(Unknown Source)<br><span style="white-space: pre;">        </span>at SolrIndexer.indexRecord(Unknown Source)<br>
<span style="white-space: pre;">        </span>at MarcImporter.addToIndex(Unknown Source)<br><span style="white-space: pre;">        </span>at MarcImporter.importRecords(Unknown Source)<br><span style="white-space: pre;">        </span>at MarcImporter.main(Unknown Source)<br>
Adding record 9: u144<br><br></div><div>The SOLR schema.xml file in &nbsp;blacklight/solr-home/conf directory &nbsp;says that all *_display fields are NOT multiValued.</div><div><br></div><div>To get the sample data to index without an error, it&#39;s just a matter of changing one line in the blacklight.properties file:</div>
<div><br></div><div>from:</div><div><div style="margin: 0px;"><span style="color: rgb(0, 0, 230);">field_list_25a</span> <span style="color: rgb(128, 128, 48);">=</span> isbn<span style="color: rgb(128, 128, 48);">_</span>display<span style="color: rgb(128, 128, 48);">,</span> all<span style="color: rgb(128, 128, 48);">,</span> 020a</div>
<div><font face="Monaco" size="3"><span style="font-size: 11px;"><br></span></font></div><div><font face="Monaco" size="3"><span style="font-size: 11px;">to</span></font></div><div><font face="Monaco" size="3"><span style="font-size: 11px;"><div style="margin: 0px;">
<span style="color: rgb(0, 0, 230);">field_list_25a</span> <span style="color: rgb(128, 128, 48);">=</span> isbn<span style="color: rgb(128, 128, 48);">_</span>display<span style="color: rgb(128, 128, 48);">,</span>&nbsp;first<span style="color: rgb(128, 128, 48);">,</span> 020a</div>
<div style="margin: 0px;"><br></div><div style="margin: 0px;">HOWEVER, I am still getting a</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><div style="margin: 0px;">java.lang.RuntimeException: org.apache.lucene.index.CorruptIndexException: Unknown format version: -4</div>
<div><font face="Helvetica" size="3"><span style="font-size: 12px;"><br></span></font></div><div><font face="Helvetica" size="3"><span style="font-size: 12px;">when trying to view the index with solr &nbsp;(<a href="http://yer.path:8983/solr/admin" target="_blank">http://yer.path:8983/solr/admin</a> ).</span></font></div>
<div><font face="Helvetica" size="3"><span style="font-size: 12px;"><br></span></font></div><div><font face="Helvetica" size="3"><span style="font-size: 12px;">But I can look at the same index with luke without a problem.</span></font></div>
<div><font face="Helvetica" size="3"><span style="font-size: 12px;"><br></span></font></div><div><br></div></div><div style="margin: 0px;">- Naomi Dushay</div><div style="margin: 0px;">Stanford University Libraries</div><div style="margin: 0px;">
<span style="font-family: Helvetica; font-size: 12px;"><a href="mailto:ndushay@stanford.edu" target="_blank">ndushay@stanford.edu</a></span></div></span></font></div></div><div><br><br><br></div></div><br>_______________________________________________<br>

Blacklight-development mailing list<br>
<a href="mailto:Blacklight-development@rubyforge.org">Blacklight-development@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/blacklight-development" target="_blank">http://rubyforge.org/mailman/listinfo/blacklight-development</a><br>
<br></blockquote></div><br>