Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12425

How to change schema field type from string to tdate.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • None
    • None
    • None

    Description

      How to change schema field type from string to tdate as we already have lots of data indexed and after just changing type into schema file getting following error. Please help...

       

      {
      "error":

      { "trace":"java.lang.NullPointerException\n\tat org.apache.lucene.util.LegacyNumericUtils.prefixCodedToLong(LegacyNumericUtils.java:189)\n\tat org.apache.solr.schema.TrieField.toObject(TrieField.java:157)\n\tat org.apache.solr.schema.TrieDateField.toObject(TrieDateField.java:92)\n\tat org.apache.solr.schema.TrieDateField.toObject(TrieDateField.java:85)\n\tat org.apache.solr.schema.TrieField.write(TrieField.java:324)\n\tat org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:133)\n\tat org.apache.solr.response.JSONWriter.writeSolrDocument(JSONResponseWriter.java:345)\n\tat org.apache.solr.response.TextResponseWriter.writeDocuments(TextResponseWriter.java:249)\n\tat org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:151)\n\tat org.apache.solr.response.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:183)\n\tat org.apache.solr.response.JSONWriter.writeNamedList(JSONResponseWriter.java:299)\n\tat org.apache.solr.response.JSONWriter.writeResponse(JSONResponseWriter.java:95)\n\tat org.apache.solr.response.JSONResponseWriter.write(JSONResponseWriter.java:60)\n\tat org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:65)\n\tat org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:731)\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:473)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:513)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:518)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\n\tat java.lang.Thread.run(Thread.java:745)\n", "code":500}

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            vikash1kumar Vikash Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: