You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andy Lester (JIRA)" <ji...@apache.org> on 2012/06/29 20:55:43 UTC

[jira] [Created] (SOLR-3584) NPE when trying to spellcheck.build

Andy Lester created SOLR-3584:
---------------------------------

             Summary: NPE when trying to spellcheck.build
                 Key: SOLR-3584
                 URL: https://issues.apache.org/jira/browse/SOLR-3584
             Project: Solr
          Issue Type: Bug
          Components: spellchecker
    Affects Versions: 3.6
         Environment: uname -a
Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
            Reporter: Andy Lester


I'm trying to force indexing of my spellchecker component on my "titles" core.

/solr/titles/suggest?q=at&spellcheck=true gives me back no results.

/solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as

null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build

Posted by "Andy Lester (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404119#comment-13404119 ] 

Andy Lester commented on SOLR-3584:
-----------------------------------

Relevant config from my solrconfig.xml

    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
            <str name="spellcheck.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>
                
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (SOLR-3584) Solr shouldn't throw NPE on config errors

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer updated SOLR-3584:
-----------------------------

    Summary: Solr shouldn't throw NPE on config errors  (was: Solr shouldn't throw NPE when spellcheck dictionary isn')
    
> Solr shouldn't throw NPE on config errors
> -----------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Resolved] (SOLR-3584) NPE when trying to spellcheck.build

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer resolved SOLR-3584.
------------------------------

    Resolution: Invalid

Andy,

Please use the user's mailing list for questions like this.

I think you just have a little config problem.  In solrconfig.xml, under <lst name="spellChecker">, add <str name="name">a_suggest</str> .
                
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Comment Edited] (SOLR-3584) NPE when trying to spellcheck.build

Posted by "Andy Lester (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404119#comment-13404119 ] 

Andy Lester edited comment on SOLR-3584 at 6/29/12 6:57 PM:
------------------------------------------------------------

Relevant config from my solrconfig.xml

{{
    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
            <str name="spellcheck.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>
}}
                
      was (Author: petdance):
    Relevant config from my solrconfig.xml

    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
            <str name="spellcheck.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>
                  
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build

Posted by "Andy Lester (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404117#comment-13404117 ] 

Andy Lester commented on SOLR-3584:
-----------------------------------

Full NPE:

HTTP Status 500 - null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:165) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) 
                
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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


[jira] [Commented] (SOLR-3584) Solr shouldn't throw NPE when spellcheck dictionary isn'

Posted by "Andy Lester (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404144#comment-13404144 ] 

Andy Lester commented on SOLR-3584:
-----------------------------------

It seems that the cause is in the <searchComponent> section.  I had <lst name="spellChecker"> where it should have been <lst name="spellchecker">.  I can reliably get the NPE by switching to the miscapitalized version.
                
> Solr shouldn't throw NPE when spellcheck dictionary isn'
> --------------------------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build

Posted by "Andy Lester (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404125#comment-13404125 ] 

Andy Lester commented on SOLR-3584:
-----------------------------------

My Tomcat catalina.out log file doesn't have anything different:

INFO: [titles] webapp=/solr path=/suggest params={spellcheck=true&q=at&spellcheck.build=true} status=500 QTime=0 
Jun 29, 2012 1:53:37 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
        at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:165)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:679)
                
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Reopened] (SOLR-3584) Solr shouldn't throw NPE on config errors

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer reopened SOLR-3584:
------------------------------


Re-open with a clarified title
                
> Solr shouldn't throw NPE on config errors
> -----------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (SOLR-3584) Spellcheck shouldn't throw NPE on config errors

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer updated SOLR-3584:
-----------------------------

    Summary: Spellcheck shouldn't throw NPE on config errors  (was: Solr shouldn't throw NPE on config errors)
    
> Spellcheck shouldn't throw NPE on config errors
> -----------------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (SOLR-3584) Solr shouldn't throw NPE when spellcheck dictionary isn'

Posted by "James Dyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer updated SOLR-3584:
-----------------------------

    Priority: Minor  (was: Major)
     Summary: Solr shouldn't throw NPE when spellcheck dictionary isn'  (was: NPE when trying to spellcheck.build)
    
> Solr shouldn't throw NPE when spellcheck dictionary isn'
> --------------------------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build

Posted by "Andy Lester (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404142#comment-13404142 ] 

Andy Lester commented on SOLR-3584:
-----------------------------------

I was doing as instructed by Chris Hostetter (hoss) in #solr.  He said: "please file a bug, because no matter how badly you might have munged your configs, or sent a bad request, Solr shouldn't just throw an NPE, someone should be catching it and giving you back a useful message about the context"

                
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Comment Edited] (SOLR-3584) NPE when trying to spellcheck.build

Posted by "Andy Lester (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404119#comment-13404119 ] 

Andy Lester edited comment on SOLR-3584 at 6/29/12 6:58 PM:
------------------------------------------------------------

Relevant config from my solrconfig.xml

{code:xml}
    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
            <str name="spellcheck.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>
{code}
                
      was (Author: petdance):
    Relevant config from my solrconfig.xml

{{
    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
            <str name="spellcheck.collate">true</str>
        </lst>
        <arr name="components">
            <str>suggest</str>
        </arr>
    </requestHandler>
}}
                  
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109) at ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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