Alexey Ponomarenko created SOLR-12060:
-----------------------------------------

             Summary: Sor suggest component failure
                 Key: SOLR-12060
                 URL: https://issues.apache.org/jira/browse/SOLR-12060
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Suggester
    Affects Versions: 7.2.1
         Environment: 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)
            Reporter: Alexey Ponomarenko
         Attachments: managed-schema, solrconfig.xml

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: 
{code:java}
http://localhost:8983/solr/numberplate/suggest?suggest=true&suggest.build=true&suggest.dictionary=analyzedSuggestion{code}
response:
{code:java}
{
"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
}
}{code}
Here is config (part from solrconfig.xml) file:
{code:java}
// <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>
{code}
Here is  part managed-schema file:
{code:java}
<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"/>
{code}
I don't know what is wrong but I can not say from this exception what is wrong.

Can you help to fix it? 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to