Title: Error return on batch indexing
Last modified: August 30, 2016

---

# Error return on batch indexing

 *  Resolved [InfoGiants](https://wordpress.org/support/users/lpkapil/)
 * (@lpkapil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-return-on-batch-indexing/)
 * An error occured:
 * Error on attached file header-about-1 (ID: 6): Solr HTTP error: OK (500) {“error”:{“
   msg”:”lazy loading error”,”trace”:”org.apache.solr.common.SolrException: lazy
   loading error\n\tat org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.
   getWrappedHandler(RequestHandlers.java:257)\n\tat org.apache.solr.core.RequestHandlers
   $LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:239)\n\tat org.
   apache.solr.core.SolrCore.execute(SolrCore.java:1916)\n\tat org.apache.solr.servlet.
   SolrDispatchFilter.execute(SolrDispatchFilter.java:768)\n\tat org.apache.solr.
   servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:415)\n\tat org.apache.
   solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:205)\n\tat org.
   eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:
   1419)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.
   java:455)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.
   java:137)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.
   java:557)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.
   java:231)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.
   java:1075)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.
   java:384)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.
   java:193)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.
   java:1009)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.
   java:135)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
   ContextHandlerCollection.java:255)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.
   handle(HandlerCollection.java:154)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.
   handle(HandlerWrapper.java:116)\n\tat org.eclipse.jetty.server.Server.handle(
   Server.java:368)\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
   AbstractHttpConnection.java:489)\n\tat org.eclipse.jetty.server.BlockingHttpConnection.
   handleRequest(BlockingHttpConnection.java:53)\n\tat org.eclipse.jetty.server.
   AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)\n\tat 
   org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(
   AbstractHttpConnection.java:1004)\n\tat org.eclipse.jetty.http.HttpParser.parseNext(
   HttpParser.java:647)\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.
   java:235)\n\tat org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.
   java:72)\n\tat org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.
   run(SocketConnector.java:264)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.
   runJob(QueuedThreadPool.java:608)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool
   $3.run(QueuedThreadPool.java:543)\n\tat java.lang.Thread.run(Thread.java:745)\
   nCaused by: org.apache.solr.common.SolrException: Error loading class ‘solr.extraction.
   ExtractingRequestHandler’\n\tat org.apache.solr.core.SolrResourceLoader.findClass(
   SolrResourceLoader.java:470)\n\tat org.apache.solr.core.SolrResourceLoader.findClass(
   SolrResourceLoader.java:401)\n\tat org.apache.solr.core.SolrCore.createInstance(
   SolrCore.java:531)\n\tat org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.
   java:604)\n\tat org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.
   getWrappedHandler(RequestHandlers.java:248)\n\t… 30 more\nCaused by: java.lang.
   ClassNotFoundException: solr.extraction.ExtractingRequestHandler\n\tat java.net.
   URLClassLoader$1.run(URLClassLoader.java:366)\n\tat java.net.URLClassLoader$1.
   run(URLClassLoader.java:355)\n\tat java.security.AccessController.doPrivileged(
   Native Method)\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:354)\
   n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\tat java.net.FactoryURLClassLoader.
   loadClass(URLClassLoader.java:793)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.
   java:358)\n\tat java.lang.Class.forName0(Native Method)\n\tat java.lang.Class.
   forName(Class.java:274)\n\tat org.apache.solr.core.SolrResourceLoader.findClass(
   SolrResourceLoader.java:454)\n\t… 34 more\n”,”code”:500}}
 * Can you please suggest why this is happening ? and how to fix it to proper index
   the data ?
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-return-on-batch-indexing/#post-6638623)
 * It is an issue with your Solr server.
 * We do not support self hosted Solr, only Solr hosted by our [http://www.gotosolr.com](http://www.gotosolr.com/en)
 *  Thread Starter [InfoGiants](https://wordpress.org/support/users/lpkapil/)
 * (@lpkapil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-return-on-batch-indexing/#post-6638658)
 * Hi,
 * There is an option for self hosted solr, remove this option if you do not support
   it. It’s useless if there is no documentation regarding this.
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-return-on-batch-indexing/#post-6638670)
 * We cannot support the thousands of Solr servers configurations (OS version +Solr
   version + configuration files).
 * There are many Solr tutorials out there.
 *  Thread Starter [InfoGiants](https://wordpress.org/support/users/lpkapil/)
 * (@lpkapil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-return-on-batch-indexing/#post-6638673)
 * I have fixed it guys and added a tutorial for it. save you lives 😀
 * Broken and not working for self hosted solr, Error in batch indexing in self 
   hosted setup.
 * Fix:
    =========
 * 1. Go to apache site and download solr version (solr-4.7.2) and extract to /opt/
   solr directory in root (/) dir and provide 755 recursive permission.
 * 3. install latest java jdk version, as solr needs java. needs sudo user to install.
 * sudo -s
 * provide sudo password to login. than you will be logged in as root user.
 * install java jdk
 * sudo apt-get install jdk
 * confirm java installed
 * javac or java –version
 * 3. change directory to solr
 * cd /opt/solr/solr/bin
 * 3. start solr server
 * java -jar start.jar
 * 4. locate your browser url
 * [http://localhost:8983/solr/](http://localhost:8983/solr/)
 * you will be able to see solr admin , cool.
 * 5. Now you will need to fix
 * /opt/solr/solr/collection1/conf/solrconfig.xml file
 * open and change this ‘<luceneMatchVersion>4.7</luceneMatchVersion>’ to
 * <luceneMatchVersion>4.6</luceneMatchVersion>
 * It will match the luence version to our solr installtion setup. we are all completed
   now. if you will not do this it will throw error in indexing ‘lazy_load_error’
   java.
 * 6. configure wpsolr with solr details:
 * Index name: whateveer you want
    Solr Protocol: http Solr host: localhost Solr
   port: 8983 Solr path: /solr
 * And click “Check Solr Status, then Save this configuration” button a green arrow
   will show, means all cool. now check uncheck page,post ,cateogry , taxonomy to
   index, than go to “solr indexing batch” tab and
    click “Synchronize WordPress
   with ‘Config’ ” button it will index all new changes to solr.
 * 7. Search in custom pages or post:
 * shortocde: [solr_search_shortcode]
 * Hurry !! 😀

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error return on batch indexing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsolr-search-engine_b2dbdc.svg)
 * [WPSOLR - Elasticsearch and Solr search](https://wordpress.org/plugins/wpsolr-search-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsolr-search-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsolr-search-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsolr-search-engine/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [InfoGiants](https://wordpress.org/support/users/lpkapil/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/error-return-on-batch-indexing/#post-6638673)
 * Status: resolved