This patch is failing when i try to index large documents of size >20MB(mainly excel and pdf)
Can anyone help? Regards, Pavan On Wed, Mar 12, 2008 at 2:04 PM, pavan kumar donepudi < [EMAIL PROTECTED]> wrote: > I got the following error when try to launch solr in tomcat after applying > patch SOLR-284 > > *message* *Severe errors in solr configuration. Check your log files for > more detailed information on what may be wrong. If you want solr to continue > after configuration errors, change: > <abortOnConfigurationError>false</abortOnConfigurationError> in > solrconfig.xml------------------------------------------------------------- > java.lang.RuntimeException: org.apache.lucene.index.CorruptIndexException: > Unknown format version: -4 at org.apache.solr.core.SolrCore.getSearcher( > SolrCore.java:498) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:229) > at org.apache.solr.core.SolrCore.getSolrCore(SolrCore.java:183) at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:70) > at org.apache.catalina.core.ApplicationFilterConfig.getFilter( > ApplicationFilterConfig.java:274) at > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef( > ApplicationFilterConfig.java:396) at > org.apache.catalina.core.ApplicationFilterConfig.<init>( > ApplicationFilterConfig.java:107) at > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) > at org.apache.catalina.core.ContainerBase.addChildInternal( > ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild > (ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild > (StandardHost.java:525) at > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) > at org.apache.catalina.startup.HostConfig.deployDescriptors( > HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps( > HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start( > HostConfig.java:1138) at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent( > LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start > (ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start( > StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start( > ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start( > StandardEngine.java:443) at org.apache.catalina.core.StandardService.start > (StandardService.java:451) at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at > org.apache.catalina.startup.Catalina.start(Catalina.java:552) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke( > Method.java:597) at org.apache.catalina.startup.Bootstrap.start( > Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main( > Bootstrap.java:413) Caused by: > org.apache.lucene.index.CorruptIndexException: Unknown format version: -4 > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204) at > org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190) at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run( > SegmentInfos.java:610) at org.apache.lucene.index.IndexReader.open( > IndexReader.java:185) at org.apache.lucene.index.IndexReader.open( > IndexReader.java:148) at org.apache.solr.search.SolrIndexSearcher.<init>( > SolrIndexSearcher.java:84) at org.apache.solr.core.SolrCore.getSearcher( > SolrCore.java:489) ... 30 more * > > *description* *The server encountered an internal error (Severe errors in > solr configuration. Check your log files for more detailed information on > what may be wrong. If you want solr to continue after configuration errors, > change: <abortOnConfigurationError>false</abortOnConfigurationError> in > solrconfig.xml------------------------------------------------------------- > java.lang.RuntimeException: org.apache.lucene.index.CorruptIndexException: > Unknown format version: -4 at org.apache.solr.core.SolrCore.getSearcher( > SolrCore.java:498) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:229) > at org.apache.solr.core.SolrCore.getSolrCore(SolrCore.java:183) at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:70) > at org.apache.catalina.core.ApplicationFilterConfig.getFilter( > ApplicationFilterConfig.java:274) at > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef( > ApplicationFilterConfig.java:396) at > org.apache.catalina.core.ApplicationFilterConfig.<init>( > ApplicationFilterConfig.java:107) at > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) > at org.apache.catalina.core.ContainerBase.addChildInternal( > ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild > (ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild > (StandardHost.java:525) at > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) > at org.apache.catalina.startup.HostConfig.deployDescriptors( > HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps( > HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start( > HostConfig.java:1138) at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent( > LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start > (ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start( > StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start( > ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start( > StandardEngine.java:443) at org.apache.catalina.core.StandardService.start > (StandardService.java:451) at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at > org.apache.catalina.startup.Catalina.start(Catalina.java:552) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke( > Method.java:597) at org.apache.catalina.startup.Bootstrap.start( > Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main( > Bootstrap.java:413) Caused by: > org.apache.lucene.index.CorruptIndexException: Unknown format version: -4 > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:204) at > org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:190) at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run( > SegmentInfos.java:610) at org.apache.lucene.index.IndexReader.open( > IndexReader.java:185) at org.apache.lucene.index.IndexReader.open( > IndexReader.java:148) at org.apache.solr.search.SolrIndexSearcher.<init>( > SolrIndexSearcher.java:84) at org.apache.solr.core.SolrCore.getSearcher( > SolrCore.java:489) ... 30 more ) that prevented it from fulfilling this > request.* > ------------------------------ > Apache Tomcat/6.0.7 > > Can any one help?? > > Regards, > Pavan > > On Fri, Feb 15, 2008 at 8:14 PM, Juho-Matti Stenberg (JIRA) < > [EMAIL PROTECTED]> wrote: > > > > > [ > > https://issues.apache.org/jira/browse/SOLR-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569275#action_12569275] > > > > Juho-Matti Stenberg commented on SOLR-284: > > ------------------------------------------ > > > > I wrote a simple patch for RichDocumentUpdateHandler to accept > > multivalued fields. Just POST the same field name multiple times, e.g. > > category=TVs&category=Radios > > > > {code:title=RichDocumentRequestHandler.java.patch} > > Index: RichDocumentRequestHandler.java > > =================================================================== > > --- RichDocumentRequestHandler.java (revision 0) > > +++ RichDocumentRequestHandler.java (working copy) > > @@ -211,7 +211,10 @@ > > for (int i =0; i < fields.length;i++){ > > String fieldName = fields[i].getName(); > > > > - builder.addField(fieldName,params.get(fieldName),1.0f); > > + String[] values = params.getParams(fieldName); > > + for(String value : values) { > > + builder.addField(fieldName,value,1.0f); > > + } > > > > } > > {code} > > > > Seems to work for me. > > > > Best Regards, > > Pompo > > > > > Parsing Rich Document Types > > > --------------------------- > > > > > > Key: SOLR-284 > > > URL: https://issues.apache.org/jira/browse/SOLR-284 > > > Project: Solr > > > Issue Type: New Feature > > > Components: update > > > Affects Versions: 1.3 > > > Reporter: Eric Pugh > > > Fix For: 1.3 > > > > > > Attachments: libs.zip, rich.patch, source.zip, test-files.zip, > > test.zip > > > > > > > > > I have developed a RichDocumentRequestHandler based on the > > CSVRequestHandler that supports streaming a PDF, Word, Powerpoint, Excel, or > > PDF document into Solr. > > > There is a wiki page with information here: > > http://wiki.apache.org/solr/UpdateRichDocuments > > > > > > > -- > > This message is automatically generated by JIRA. > > - > > You can reply to this email to add a comment to the issue online. > > > > >