You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Pradeep Singh (JIRA)" <ji...@apache.org> on 2010/11/02 21:18:26 UTC

[jira] Updated: (SOLR-2142) Faceting exception

     [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pradeep Singh updated SOLR-2142:
--------------------------------

    Attachment: solr-home.zip

The issue continues be there. I am not being able to reproduce it in a test case but I am attaching a solr-home with an index of 4 documents.

Query that prints exception -
http://localhost:8080/solr/user/?q=&facet=true&facet.method=fc&facet.field=roles&fl=*

No problems with this query -
http://localhost:8080/solr/user/?q=&facet=true&facet.method=enum&facet.field=roles&fl=*

Dcument with id 103 is the problem indexed with an empty string in the field used for faceting. Facet type enum works but fc throws exception. After you delete the document with id 103, commit and optimize it, both types of faceting work.

Thanks.

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-2142.patch, solr-home.zip
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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