I'm facing the same problem, did you find any solution ? On Thursday, March 8, 2018 at 11:37:42 PM UTC+3:30, Asanka Jayasundara wrote: > > I'm following the django documentation > <http://django-oscar.readthedocs.io/en/latest/howto/how_to_setup_solr.html#installing-solr> > to > integrate solr with django-Oscar.I'm getting the following error when > trying to rebuild the index.How can I fix this issue? > > > *$python3 manage.py rebuild_index --noinput* > > Removing all documents from your index because you said so. > > Failed to clear Solr index: Solr responded with an error (HTTP 500): > [Reason: Error 500 {msg=SolrCore 'collection1' is not available due to init > failure: Schema Parsing Failed: unknown field 'id'. Schema file is > /project/solr-4.7.2/example/solr/collection1/schema.xml,trace=org.apache.solr.common.SolrException: > SolrCore 'collection1' is not available due to init failure: Schema Parsing > Failed: unknown field 'id'. Schema file is > /project/solr-4.7.2/example/solr/collection1/schema.xml > at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:827) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:305) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:205) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > at org.eclipse.jetty.server.Server.handle(Server.java:368) > at > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) > at > org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) > at > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953) > at > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) > at > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) > at > org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) > at > org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > at java.lang.Thread.run(Thread.java:748) > Caused by: org.apache.solr.common.SolrException: Schema Parsing Failed: > unknown field 'id'. Schema file is > /project/solr-4.7.2/example/solr/collection1/schema.xml > at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:618) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:166) > at > org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55) > at > org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69) > at > org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:559) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:597) > at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:258) > at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:250) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > ... 1 more > Caused by: java.lang.RuntimeException: unk > >
-- https://github.com/tangentlabs/django-oscar http://django-oscar.readthedocs.org/en/latest/ https://twitter.com/django_oscar --- You received this message because you are subscribed to the Google Groups "django-oscar" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/django-oscar. To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/a95683bc-1803-42c7-ad8f-b436a0c38dbc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.