This was due to a custom field that had been added to dspace/solr/statistics/conf/schema.xml in 1.8.3, but hadn't been carried over to 4.2.
Steven From: Hayles, Steven Sent: 08 January 2015 15:04 To: '[email protected]' Subject: Error optimising statistics core after upgrade from 1.8.3 to 4.2 Hi I'm upgrading from DSpace 1.8.3. I optimised the Solr cores before upgrade, but when I attempt to optimise under 4.2 with wget http://localhost:8080/solr/statistics/update?optimize=true the response is ERROR 500: Internal Server Error with the following logged ==> catalina7.log <== Exception in thread "Lucene Merge Thread #0" org.apache.lucene.index.MergePolicy$MergeException: java.lang.IllegalArgumentException: no such field stats_oai_ok at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:545) at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:518) Caused by: java.lang.IllegalArgumentException: no such field stats_oai_ok at org.apache.solr.core.SchemaCodecFactory$1.getPostingsFormatForField(SchemaCodecFactory.java:59) at org.apache.lucene.codecs.lucene42.Lucene42Codec$1.getPostingsFormatForField(Lucene42Codec.java:59) at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsWriter.addField(PerFieldPostingsFormat.java:102) at org.apache.lucene.codecs.FieldsConsumer.merge(FieldsConsumer.java:71) at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:365) at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:98) at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3772) at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3376) at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:405) at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482) oai and search cores optimised without error. The environment : SUSE Linux Enterprise Server 11 (x86_64) JRE: Oracle Corporation version 1.7.0_45 Server version: Apache Tomcat/7.0.54 Server built: May 19 2014 10:26:15 Any pointers gladly received. Thanks Steven Hayles Systems Analyst IT Services, University of Leicester, Propsect House, 94 Regent Rd, Leicester, LE1 7DA, UK T: +44 (0)116 229 7950 E: [email protected] The Queen’s Anniversary Prizes 1994, 2002 & 2013 THE Awards Winners 2007-2013 Elite without being elitist Follow us on Twitter http://twitter.com/uniofleicester or visit our Facebook page https://facebook.com/UniofLeicester ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. vanity: www.gigenet.com _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

