I'm getting this error when indexing some nodes with solr and I think that it's something related to this module because I don't get this error when I disable Node Displays and also it says somethin about this module in the error message:

	Indexing failed on one of the following nodes: 31847
"500" Status: Internal Server Error


Error 500

HTTP ERROR: 500Error while creating field 'ds_cck_field_vigencia_desde{type=date,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast}' from value '2010-01-26T00:00:00'

org.apache.solr.common.SolrException: Error while creating field 'ds_cck_field_vigencia_desde{type=date,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast}' from value '2010-01-26T00:00:00'
at org.apache.solr.schema.FieldType.createField(FieldType.java:200)
at org.apache.solr.schema.SchemaField.createField(SchemaField.java:94)
at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: org.apache.solr.common.SolrException: Invalid Date String:'2010-01-26T00:00:00'
at org.apache.solr.schema.DateField.parseMath(DateField.java:163)
at org.apache.solr.schema.DateField.toInternal(DateField.java:133)
at org.apache.solr.schema.FieldType.createField(FieldType.java:198)
...27 more

RequestURI=/solr/updatePowered by Jetty://

It seems to be something related to a Date field that I have in a content type which is stored as varchar in the database. It seems that ND is trying to create this field: ds_cck_field_vigencia_desde?
Any help is welcome!

Comments

swentel’s picture

Project: Node displays » Node displays contributions
Component: Code » ND Search
Status: Active » Postponed (maintainer needs more info)

2 questions:

  • Which version of Apache Solr are you using ? The 6.x.1 branch or 2. This version of ND search only works with the 6.x.2 branch of apache solr
  • Can you look at admin/ds/nd/nd_search and and select 'string' for the 'Apachesolr date type' instead of date and re-index to see if things work after that. Let me know if this make things better

Moving this also to displays contributions, component 'ND Search'.

mburak’s picture

Ok, I'm using the Apache Solr 6.x.1 because the 2 is still in alpha.
Anyway I'll try changing the date type in the nd config page. Thanks!

swentel’s picture

Status: Postponed (maintainer needs more info) » Fixed

I've remove the code which tried to index a cck date field type now that #558160: date facet for cck field got in apache solr 2 branch.

swentel’s picture

Status: Fixed » Closed (fixed)