lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dr Oleg Savrasov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-8644) ArrayIndexOutOfBoundsException in BlockJoinFieldFacetAccumulator
Date Sun, 20 Mar 2016 15:57:33 GMT

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

Dr Oleg Savrasov updated SOLR-8644:
-----------------------------------
    Attachment: SOLR-8644.patch

The issue is reproduced with Unit test. It looks like BlockJoinFacetComponent conflicts with
calculating exclusions defined for usual facet.

> ArrayIndexOutOfBoundsException in BlockJoinFieldFacetAccumulator
> ----------------------------------------------------------------
>
>                 Key: SOLR-8644
>                 URL: https://issues.apache.org/jira/browse/SOLR-8644
>             Project: Solr
>          Issue Type: Sub-task
>          Components: faceting
>            Reporter: Ilya Kasnacheev
>            Priority: Minor
>             Fix For: 5.5, master
>
>         Attachments: SOLR-8644.patch
>
>
> Not sure I can provide any minimal example, but possibly it's easier to fix than describe.
> {code}
> http://localhost:8983/solr/core0/bjqfacet?q={!parent+which%3Dtype_s:parent+v%3D$cq}&fq={!term+f%3DBRAND_s+tag%3Drbrand}Nike&facet=true&cq=type_s:child+AND+SIZE_s:XL&facet.field={!ex%3Drbrand}BRAND_s&child.facet.field=disp_clr
> {code}
> {code}
> java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.solr.search.join.BlockJoinFieldFacetAccumulator$SortedIntsAggDocIterator.nextDoc(BlockJoinFieldFacetAccumulator.java:117)
>         at org.apache.solr.search.join.BlockJoinFieldFacetAccumulator.updateCountsWithMatchedBlock(BlockJoinFieldFacetAccumulator.java:143)
>         at org.apache.solr.search.join.BlockJoinFacetCollector.countFacets(BlockJoinFacetCollector.java:119)
>         at org.apache.solr.search.join.BlockJoinFacetCollector.incrementFacets(BlockJoinFacetCollector.java:106)
>         at org.apache.solr.search.join.BlockJoinFacetCollector.collect(BlockJoinFacetCollector.java:87)
>         at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:1161)
> {code}
> Again it only shows up in BlockJoinFacetComponent, not in BlockJoinDocSetFacetComponent
> The error is at bottom of result:
> {code}
> <lst name="error"><str name="trace">java.lang.ArrayIndexOutOfBoundsException
> </str><int name="code">500</int></lst>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message