lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-12852) NPE in ClusteringComponent
Date Mon, 15 Oct 2018 13:22:00 GMT

    [ https://issues.apache.org/jira/browse/SOLR-12852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650189#comment-16650189
] 

Dawid Weiss commented on SOLR-12852:
------------------------------------

I've tried but failed to reproduce the problem in synthetic (junit) "distributed" tests. I
don't understand why (or the details of the scaffolding code that runs behind the distributed
test). :(

> NPE in ClusteringComponent
> --------------------------
>
>                 Key: SOLR-12852
>                 URL: https://issues.apache.org/jira/browse/SOLR-12852
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - Clustering
>    Affects Versions: 7.5
>            Reporter: Markus Jelsma
>            Assignee: Dawid Weiss
>            Priority: Major
>             Fix For: master (8.0)
>
>         Attachments: SOLR-12852.patch
>
>
> Got this exception:
> {code}
>  o.a.s.s.HttpSolrCall null:java.lang.NullPointerException
>         at org.apache.solr.handler.clustering.ClusteringComponent.process(ClusteringComponent.java:234)
>         at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298)
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:2541)
>         at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:709)
>         at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:515)
>         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:377)
>         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:323)
> {code}
> with this config (copied from reference guide, changed title and snippet parameters)
> {code}
>   <searchComponent name="clustering" class="solr.clustering.ClusteringComponent">
>     <!-- Lingo clustering algorithm -->
>     <lst name="engine">
>       <str name="name">lingo</str>
>       <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
>     </lst>
>     <!-- An example definition for the STC clustering algorithm. -->
>     <lst name="engine">
>       <str name="name">stc</str>
>       <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
>     </lst>
>   </searchComponent>
>   
>   <requestHandler name="/clustering"
>                   class="solr.SearchHandler">
>     <lst name="defaults">
>       <bool name="clustering">true</bool>
>       <bool name="clustering.results">true</bool>
>       <!-- Logical field to physical field mapping. -->
>       <str name="carrot.url">id</str>
>       <str name="carrot.title">title_nl</str>
>       <str name="carrot.snippet">content_nl</str>
>       <!-- Configure any other request handler parameters. We will cluster the
>           top 100 search results so bump up the 'rows' parameter. -->
>       <str name="rows">100</str>
>       <str name="fl">*,score</str>
>     </lst>
>     <!-- Append clustering at the end of the list of search components. -->
>     <arr name="last-components">
>       <str>clustering</str>
>     </arr>
>   </requestHandler>
> {code}
> using this query:
> http://localhost:8983/solr/collection/clustering?q=*:*
> All libraries are present, Solr no longer complains about missing classes, instead i
got this.



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

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


Mime
View raw message