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

Sor suggest component failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 7.2.1
    • None
    • Suggester
    • None
    • I am using following software:

      • Windows 10 Enterprise (all latest update installed, last check 06.03.2018)
      • Solr 7.2.1 (running in Cloud mode)

    Description

      I am trying to use Solr suggest component but it is crashes. It was working initially but suddenly stopped working correctly. I don't know what is the problem.

      Here is a code:

      request: 

      http://localhost:8983/solr/numberplate/suggest?suggest=true&suggest.build=true&suggest.dictionary=analyzedSuggestion

      response:

      {
      "responseHeader": {
      "zkConnected": true,
      "status": 500,
      "QTime": 73
      },
      "command": "build",
      "error": {
      "trace": "java.lang.NullPointerException\r\n\tat org.apache.solr.handler.component.QueryComponent.unmarshalSortValues(QueryComponent.java:1034)\r\n\tat org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:885)\r\n\tat org.apache.solr.handler.component.QueryComponent.handleRegularResponses(QueryComponent.java:585)\r\n\tat org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:564)\r\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:423)\r\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)\r\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:2503)\r\n\tat org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:710)\r\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:382)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:326)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1751)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\r\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\r\n\tat org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:534)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)\r\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n",
      "code": 500
      }
      }

      Here is config (part from solrconfig.xml) file:

      // <searchComponent name="suggest" class="solr.SuggestComponent">
          <lst name="suggester">
          <str name="name">analyzedSuggestion</str>
          <str name="lookupImpl">AnalyzingLookupFactory</str>
          <str name="dictionaryImpl">DocumentDictionaryFactory</str> 
          <str name="field">CountryOfRegistration</str>
          <str name="weightField">0</str>
          <str name="suggestAnalyzerFieldType">string</str>
          <str name="buildOnStartup">false</str> 
          </lst>
      </searchComponent>
      
      <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
          <lst name="defaults">
            <str name="suggest">true</str>
            <str name="suggest.count">10</str>
          </lst>
          <arr name="first-components">
             <str>suggest</str>
          </arr> 
      </requestHandler>
      

      Here is  part managed-schema file:

      <field name="CountryOfRegistration" type="string" indexed="true" stored="true"/>
        <field name="FirstName" type="string" indexed="true" stored="true"/>
        <field name="LastName" type="string" indexed="true" stored="true"/>
        <field name="Number" type="string" indexed="true" stored="true"/>
        <field name="Organization" type="string" indexed="true" stored="true"/>
        <field name="_root_" type="string" docValues="false" indexed="true" stored="false"/>
        <field name="_text_" type="text_general" multiValued="true" indexed="true" stored="false"/>
        <field name="_version_" type="plong" indexed="false" stored="false"/>
        <field name="id" type="string" multiValued="false" indexed="true" required="true" stored="true"/>
      

      I don't know what is wrong but I can not say from this exception what is wrong.

      Can you help to fix it? 

       

      P. S. Even if my configuration is incorrect it is not very informative message. It is actually not a message it is just a stack trace. I can not fix this issue based on this stack trace so I will spend much time investigating what is wrong. Maybe you can add more informative message what is going wrong? 

      Attachments

        1. managed-schema
          28 kB
          Alexey Ponomarenko
        2. solrconfig.xml
          61 kB
          Alexey Ponomarenko

        Activity

          People

            Unassigned Unassigned
            Fatalityap Alexey Ponomarenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: