You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Munendra S N (Jira)" <ji...@apache.org> on 2019/12/10 15:51:00 UTC

[jira] [Commented] (SOLR-8834) NPE for BlockJoinFacetComponent and facet.prefix not working

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

Munendra S N commented on SOLR-8834:
------------------------------------

Recently, I came across SOLR-14031 which is related to BlockJoinFacetComponent. With improvements in JSON facet child rollup SOLR-8998 and child exclusions in SOLR-9510, should we deprecate this component in 8x and remove in 9.0?
Is there anything supported by this component which is not yet supported in JSON facet module.
[~mkhl] WDYT?

> NPE for BlockJoinFacetComponent and facet.prefix not working
> ------------------------------------------------------------
>
>                 Key: SOLR-8834
>                 URL: https://issues.apache.org/jira/browse/SOLR-8834
>             Project: Solr
>          Issue Type: Bug
>          Components: faceting
>    Affects Versions: 5.5
>            Reporter: Vijay Sekhri
>            Priority: Minor
>         Attachments: SOLR-8834.patch
>
>
> Sometime for some types of queries a NPE is thrown .  This is the code where it was happening.
> {code}
> 14:00:20,751 ERROR [org.apache.solr.servlet.HttpSolrCall] (http-/10.235.43.43:8580-82) null:java.lang.NullPointerException
>         at org.apache.solr.search.join.BlockJoinFacetCollector.incrementFacets(BlockJoinFacetCollector.java:100)
>         at org.apache.solr.search.join.BlockJoinFacetCollector.collect(BlockJoinFacetCollector.java:87)
> {code}
> It could be related to stats query that does not even have any ToParentBlockJoin syntax . Here is one example
> {code}
> 15:07:56,736 INFO  [org.apache.solr.core.SolrCore.Request] (http-/10.235.43.43:8580-143) [core1]  webapp=/solr path=/select 
> params={shards.qt=searchStandard&tie=0.01&stats=true&distrib=false&q.alt=*:*&originIP=10.235.52.131&collection=search1&shards.tolerant=true&version=2&NOW=1454360876733&shard.url=http://solrx331p.qa.ch3.s.com:8580/solr/core1/|http://solrx351p.qa.ch3.s.com:8580/solr/core1/&fl=id&fl=score&bf=%0a++++++++++++&timeAllowed=10000&qt=searchStandard&fsv=true&fq=catalogs:(("10104"))&fq=searchableAttributes:(("Metal%3DTri+color"))&fq=brand:("Black+Hills+Gold")&fq=discount:("70")&fq=primaryCategory:("10104_3_Jewelry_Diamonds_Rings")&mm=%0a++++++++++++++++2<-1+5<-2+6<-50%25%0a++++++++++++&hasOrigCategories=1&qf=%0a+++++++++++++++++primaryLnames^5.0+partnumber^11.0+itemnumber^11.0+fullmfpartno^5.0+mfpartno^5.0+xref^10.0+storeOriginSearchable^3.0+nameSearchable^10.0+brandSearchable^5.0++searchPhrase^1.0++searchableAttributesSearchable^1.0++++%0a++++++++++++&wt=javabin&rows=0&pf=%0a+++++++++++++++primaryLnames^0.5+nameSearchable^1.0+storeOriginSearchable^0.3+brandSearchable^0.5++xref^1.1+searchableAttributesSearchable^0.1%0a++++++++++++&shards.purpose=516&start=0&q=white+diamonds+diamonds+elizabeth+taylor+body+lotion&bot=true&stats.field=price_10151_f&isShard=true&ps=100} hits=0 status=0 QTime=0
> 15:07:56,758 ERROR [org.apache.solr.handler.RequestHandlerBase] (http-/10.235.43.43:8580-26) java.lang.NullPointerException
>         at org.apache.solr.search.join.BlockJoinFacetCollector.incrementFacets(BlockJoinFacetCollector.java:100)
>         at org.apache.solr.search.join.BlockJoinFacetCollector.collect(BlockJoinFacetCollector.java:87)
>         at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:1153)
>         at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:350)
>         at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:273)
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)
> {code}
> Furthermore,
> when facet.prefix is passed it is not being honored by child.facet.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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