lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fuad Efendi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-2142) Faceting exception
Date Fri, 15 Oct 2010 01:27:32 GMT

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

Fuad Efendi commented on SOLR-2142:
-----------------------------------

Index contains terms with zero length. 
Probaly SOLR should prevent adding not-null empty fields (zero-length strings)...

I am using DataImportHandler, and SQL to import data from a database. I verified some tables:
instead of NULL they contain empty strings (which are considered as Terms with size=0).


bq. {code} if (br != null && br.length!=0 && (pos & intervalMask)==0)
{ {code}
- it won't really fix anything; it will cause another types of  exceptions:
{code}
SEVERE: Exception during facet.field of BusinessKeywords:java.lang.NullPointerException
        at org.apache.solr.util.ByteUtils.UTF8toUTF16(ByteUtils.java:70)
        at org.apache.solr.schema.FieldType.indexedToReadable(FieldType.java:356)
        at org.apache.solr.request.UnInvertedField.getReadableValue(UnInvertedField.java:868)
        at org.apache.solr.request.UnInvertedField.getCounts(UnInvertedField.java:648)
        at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:299)
        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:231)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1325)
{code}




> 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
>
> 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


Mime
View raw message